Skip to content

Commit

Permalink
Move last external variable to shared project (Compilation_Mode).
Browse files Browse the repository at this point in the history
The shared project usually collects such settings.
  • Loading branch information
asarhaddon committed Oct 10, 2020
1 parent 062dacd commit fd29fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions lib/gnat/aunit.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions lib/gnat/aunit_shared.gpr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fd29fec

Please sign in to comment.