Skip to content

Commit 0ae65f3

Browse files
committed
Pass -O0 to gpr2-build-actions-compile-ada.adb
to avoid GCC 14.2 bug-box/crash Refs eng/gpr/gpr-issues#452
1 parent f40760d commit 0ae65f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subprojects/libgpr2.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ command = [
3232
"-i.bk2",
3333
"-e", '''
3434
/package Compiler/a\
35-
for Switches ("gpr2-build-actions-post_bind.adb") use Compiler'Default_Switches ("Ada") & ("-O0");''',
35+
for Switches ("gpr2-build-actions-post_bind.adb") use Compiler'Default_Switches ("Ada") & ("-O0");\
36+
for Switches ("gpr2-build-actions-compile-ada.adb") use Compiler'Default_Switches ("Ada") & ("-O0");''',
3637
"gpr2.gpr"]
3738

3839
[[actions]]

0 commit comments

Comments
 (0)