From c4ebe23f73e481e5edef37fee6de6ac78864c80c Mon Sep 17 00:00:00 2001 From: Folkert Kevelam Date: Fri, 27 Jun 2025 20:32:59 +0200 Subject: [PATCH] Change compilation switches --- runtime/runtime.gpr | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/runtime/runtime.gpr b/runtime/runtime.gpr index 3c59956..26c4196 100644 --- a/runtime/runtime.gpr +++ b/runtime/runtime.gpr @@ -17,9 +17,9 @@ library project Runtime is package Compiler is COMMON_FLAGS := ("-ffunction-sections", "-fdata-sections"); - COMMON_FLAGS := COMMON_FLAGS & ("-g", "-Og"); + COMMON_FLAGS := COMMON_FLAGS & ("-g", "-Os"); ALL_ADAFLAGS := - ("-gnatwae", "-gnatpgn", "-gnatqQ", "-nostdinc") + ("-gnatwae", "-gnatpgn", "-gnatqQ", "-nostdinc", "-gnat2022") & COMMON_FLAGS & external_as_list ("EXTRA_ADAFLAGS", " "); @@ -30,9 +30,6 @@ library project Runtime is & external_as_list("DEFINES", " ") & ("-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 ("Ada") use ALL_ADAFLAGS; end Compiler;