Change compilation switches
This commit is contained in:
parent
b899c9f4ce
commit
ee9b469c90
|
|
@ -17,9 +17,9 @@ library project Runtime is
|
||||||
|
|
||||||
package Compiler is
|
package Compiler is
|
||||||
COMMON_FLAGS := ("-ffunction-sections", "-fdata-sections");
|
COMMON_FLAGS := ("-ffunction-sections", "-fdata-sections");
|
||||||
COMMON_FLAGS := COMMON_FLAGS & ("-g", "-Og");
|
COMMON_FLAGS := COMMON_FLAGS & ("-g", "-Os");
|
||||||
ALL_ADAFLAGS :=
|
ALL_ADAFLAGS :=
|
||||||
("-gnatwae", "-gnatpgn", "-gnatqQ", "-nostdinc")
|
("-gnatwae", "-gnatpgn", "-gnatqQ", "-nostdinc", "-gnat2022")
|
||||||
& COMMON_FLAGS
|
& COMMON_FLAGS
|
||||||
& external_as_list ("EXTRA_ADAFLAGS", " ");
|
& external_as_list ("EXTRA_ADAFLAGS", " ");
|
||||||
|
|
||||||
|
|
@ -30,9 +30,6 @@ library project Runtime is
|
||||||
& external_as_list("DEFINES", " ")
|
& external_as_list("DEFINES", " ")
|
||||||
& ("-DIN_RTS", "-Dinhibit_libc") & COMMON_FLAGS;
|
& ("-DIN_RTS", "-Dinhibit_libc") & COMMON_FLAGS;
|
||||||
|
|
||||||
NO_SIBLING_ADAFLAGS := ("-fno-optimize-sibling-calls");
|
|
||||||
NO_REORDER_ADAFLAGS := ("-fno=toplevel-reorder");
|
|
||||||
|
|
||||||
for Switches ("C") use ALL_CFLAGS;
|
for Switches ("C") use ALL_CFLAGS;
|
||||||
for Switches ("Ada") use ALL_ADAFLAGS;
|
for Switches ("Ada") use ALL_ADAFLAGS;
|
||||||
end Compiler;
|
end Compiler;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user