diff options
Diffstat (limited to 'examples.gpr')
-rw-r--r-- | examples.gpr | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples.gpr b/examples.gpr index 2f63bc2..117886f 100644 --- a/examples.gpr +++ b/examples.gpr @@ -6,6 +6,11 @@ with "packrat"; project Examples is + type Mode_Type is ("debug", "release"); + + Mode : Mode_Type := external ("mode", "debug"); + + for Languages use ("Ada"); @@ -23,7 +28,12 @@ project Examples is package Compiler is - for Default_Switches ("Ada") use ("-gnaty4aAbcefhiklM100nprt"); + case Mode is + when "debug" => + for Switches ("Ada") use ("-gnaty4aAbcefhiklM100nprt"); + when "release" => + for Switches ("Ada") use ("-O3"); + end case; end Compiler; |