]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Always use -gnatg in run-time GPR files
authorRonan Desplanques <desplanques@adacore.com>
Thu, 19 Oct 2023 08:05:51 +0000 (10:05 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 21 Nov 2023 09:57:40 +0000 (10:57 +0100)
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.

gcc/ada/libgnat/libgnat_common.gpr

index 630392887643c4b91fcfd3ad12dc9ee425173d1d..a6340332c578cb2d776d995a591f697952030b94 100644 (file)
@@ -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");