summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild b/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
index aa6c851354d5..6dd19f3debf3 100644
--- a/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
+++ b/dev-ada/ada_language_server/ada_language_server-22.0.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
-inherit ada multiprocessing
+inherit ada multiprocessing toolchain-funcs
DESCRIPTION="an implementation of the Microsoft Language Server Protocol for Ada/SPARK"
HOMEPAGE="https://github.com/AdaCore/ada_language_server"
@@ -30,6 +30,14 @@ BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]
REQUIRED_USE="${ADA_REQUIRED_USE}"
+src_prepare() {
+ sed -i \
+ -e "s:g++:$(tc-getCXX):" \
+ gnat/lsp_server.gpr \
+ || die
+ default
+}
+
src_compile() {
gprbuild -v -j$(makeopts_jobs) -P gnat/tester.gpr -p \
-XLIBRARY_TYPE=relocatable \