From fd29fec5ac1fb6141081877d9d931db8ba4ec179 Mon Sep 17 00:00:00 2001 From: Nicolas Boulenguez Date: Mon, 26 Aug 2019 13:24:08 +0200 Subject: [PATCH] Move last external variable to shared project (Compilation_Mode). The shared project usually collects such settings. --- lib/gnat/aunit.gpr | 5 +---- lib/gnat/aunit_shared.gpr | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) 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