Files
ada_language_server/subprojects/libgpr2.toml
Maxim Reznik 0ae65f32f2 Pass -O0 to gpr2-build-actions-compile-ada.adb
to avoid GCC 14.2 bug-box/crash

Refs eng/gpr/gpr-issues#452
2024-10-29 17:18:31 +02:00

47 lines
1.3 KiB
TOML

name = "libgpr2"
version = "24.0.0"
description = "Parser for GPR Project File"
authors = ["AdaCore"]
licenses = "Apache-2.0 WITH LLVM-exception"
maintainers = ["chouteau@adacore.com"]
maintainers-logins = ["Fabien-Chouteau"]
project-files = ["gpr2.gpr"]
[configuration]
disabled = true
[gpr-externals]
GPR2_BUILD = ["debug", "release", "release_checks", "gnatcov"]
LIBRARY_TYPE = ["static", "relocatable", "static-pic"]
[gpr-set-externals]
GPR2_BUILD = "release"
[[actions]]
type = "post-fetch"
command = ["bash", "-c", "-x", "[ -d gprconfig_kb ] || git clone https://github.com/AdaCore/gprconfig_kb.git"]
[[actions]]
type = "post-fetch"
command = ["sed", "-i.bak", "-E", "-e", "s/\\b(X?)BUILD\\b/\\1GPR2_BUILD/g", "Makefile", "gpr2.gpr", "bindings/c/gpr2-c.gpr"]
[[actions]]
type = "post-fetch"
command = [
"sed",
"-i.bk2",
"-e", '''
/package Compiler/a\
for Switches ("gpr2-build-actions-post_bind.adb") use Compiler'Default_Switches ("Ada") & ("-O0");\
for Switches ("gpr2-build-actions-compile-ada.adb") use Compiler'Default_Switches ("Ada") & ("-O0");''',
"gpr2.gpr"]
[[actions]]
type = "pre-build"
command = ["make", "setup", ".build/kb/gpr2-kb-embedded.ads", ".build/kb/gpr2-kb-embedded.adb", "GPR2KBDIR=./gprconfig_kb/db"]
[[depends-on]]
gnatcoll = "~24.0.0"
gnatcoll_iconv = "~24.0.0"
gnatcoll_gmp = "~24.0.0"