diff --git a/lib/gnat/aunit.gpr b/lib/gnat/aunit.gpr index f11a8b1..e4264bd 100644 --- a/lib/gnat/aunit.gpr +++ b/lib/gnat/aunit.gpr @@ -3,9 +3,6 @@ with "aunit_shared"; project AUnit is - type Compilation_Mode_Type is ("Devel", "Install"); - Mode : Compilation_Mode_Type := external ("AUNIT_BUILD_MODE", "Install"); - for Source_Dirs use ("../../include/aunit/framework", "../../include/aunit/containers", @@ -43,7 +40,7 @@ project AUnit is -------------- package Compiler is - case Mode is + case AUnit_Shared.Mode is when "Devel" => for Default_Switches ("ada") use ("-g", "-gnatQ", "-O1", "-gnatf", "-gnato", diff --git a/lib/gnat/aunit_shared.gpr b/lib/gnat/aunit_shared.gpr index 1e1fddb..ac42756 100644 --- a/lib/gnat/aunit_shared.gpr +++ b/lib/gnat/aunit_shared.gpr @@ -1,5 +1,8 @@ project AUnit_Shared is + type Compilation_Mode_Type is ("Devel", "Install"); + Mode : Compilation_Mode_Type := external ("AUNIT_BUILD_MODE", "Install"); + Target := external ("AUNIT_PLATFORM", "native"); type Runtime_Type is