Skip to content

Commit 5100ea1

Browse files
committed
Merge branch 'topic/hack_gpr2' into 'master'
Add `-O0` for `gpr2-build-actions-post_bind.adb` See merge request eng/ide/ada_language_server!1662
2 parents f5b8461 + 360f73c commit 5100ea1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

subprojects/libgpr2.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ command = ["bash", "-c", "-x", "[ -d gprconfig_kb ] || git clone https://github.
2525
type = "post-fetch"
2626
command = ["sed", "-i.bak", "-E", "-e", "s/\\b(X?)BUILD\\b/\\1GPR2_BUILD/g", "Makefile", "gpr2.gpr", "bindings/c/gpr2-c.gpr"]
2727

28+
[[actions]]
29+
type = "post-fetch"
30+
command = [
31+
"sed",
32+
"-i.bk2",
33+
"-e", '''
34+
/package Compiler/a for Switches ("gpr2-build-actions-post_bind.adb") use Compiler'Default_Switches ("Ada") & ("-O0");''',
35+
"gpr2.gpr"]
36+
2837
[[actions]]
2938
type = "pre-build"
3039
command = ["bash", "-c", "-x", "make setup build-lib-${LIBRARY_TYPE:-static} GPR2KBDIR=./gprconfig_kb/db"]

0 commit comments

Comments
 (0)