diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2023-10-19 10:05:51 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-11-21 10:57:40 +0100 |
commit | 4b7d0f22b1357a407856571ad1945bbb4ca22f0c (patch) | |
tree | 4f3e18a632e2d06d221bbc91a008c362b567606b | |
parent | 20585dc92ef4d6223631d043f4846cc97343fc52 (diff) | |
download | gcc-4b7d0f22b1357a407856571ad1945bbb4ca22f0c.zip gcc-4b7d0f22b1357a407856571ad1945bbb4ca22f0c.tar.gz gcc-4b7d0f22b1357a407856571ad1945bbb4ca22f0c.tar.bz2 |
ada: Always use -gnatg in run-time GPR files
This patch makes it so -gnatg is always passed to the compiler when
rebuilding the run-time library with the dedicated GPR files. Before
this patch, if a user rebuilt the run-time with -XADAFLAGS=XXX where
XXX didn't include "-gnatg", the build would immediately fail. This
case occurs when following the instructions in libada.gpr, which
use '-XADAFLAGS="-gnatn"'.
gcc/ada/
* libgnat/libgnat_common.gpr: Unconditionally pass -gnatg.
-rw-r--r-- | gcc/ada/libgnat/libgnat_common.gpr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/libgnat/libgnat_common.gpr b/gcc/ada/libgnat/libgnat_common.gpr index 6303928..a634033 100644 --- a/gcc/ada/libgnat/libgnat_common.gpr +++ b/gcc/ada/libgnat/libgnat_common.gpr @@ -5,7 +5,7 @@ abstract project Libgnat_Common is ("-I../include", "-DIN_RTS=1", "-fexceptions", "-DSTANDALONE") & External_As_List ("EXTRALIBFLAGS", " "); - Ada_Flags := Common_Flags & ("-nostdinc", "-I../adainclude") + Ada_Flags := Common_Flags & ("-nostdinc", "-I../adainclude", "-gnatg") & Split (External ("ADAFLAGS", "-gnatpg"), " "); Library_Kind := External ("LIBRARY_KIND", "static"); |