From 813767c0cf5fe8c0e7a8847ef307f5bc8a861710 Mon Sep 17 00:00:00 2001 From: Blady Date: Sun, 27 Nov 2022 13:17:58 +0100 Subject: [PATCH 1/3] Add convenient makefile targets in order to build and install glib lsp_client. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index efe040e07..8ce248e7c 100644 --- a/Makefile +++ b/Makefile @@ -146,3 +146,13 @@ check: all deploy: check integration/$(USER)/deploy.sh $(PLATFORM) + +lsp_client_glib-build: + $(GPRBUILD) -P gnat/lsp_client_glib.gpr -p $(COVERAGE_BUILD_FLAGS) \ + -XVERSION=$(TRAVIS_TAG) + +lsp_client_glib-install: + gprinstall -f -P gnat/lsp_client_glib.gpr -p -r \ + --mode=dev \ + --prefix=$(DESTDIR) \ + $(LIBRARY_FLAGS) From 14d0dba3c1340f683ab2301fb9edcbf84028a951 Mon Sep 17 00:00:00 2001 From: Blady Date: Sun, 27 Nov 2022 15:25:46 +0100 Subject: [PATCH 2/3] Ensure that address randomization is not active for backtracking in dev mode for macOS / OSX / Darwin. --- gnat/lsp_server.gpr | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnat/lsp_server.gpr b/gnat/lsp_server.gpr index 76e6cfcc7..4d773f473 100644 --- a/gnat/lsp_server.gpr +++ b/gnat/lsp_server.gpr @@ -68,6 +68,18 @@ project LSP_Server is when "relocatable" => null; end case; + case LSP.Build_Mode is + when "prod" => + null; + when "dev" => + case OS is + when "osx" => + -- This ensure that address randomization is not active for backtracking + for Switches ("Ada") use Linker'Switches ("ada") & ("-Wl,-no_pie"); + when others => + null; + end case; + end case; end Linker; package Binder is From f021acc2517d911b290f42cf27fbf34441a2f405 Mon Sep 17 00:00:00 2001 From: Blady Date: Fri, 23 Dec 2022 21:03:00 +0100 Subject: [PATCH 3/3] Disable PIE for Linux (unix tag) too. --- gnat/lsp_server.gpr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnat/lsp_server.gpr b/gnat/lsp_server.gpr index 4d773f473..80875d2f7 100644 --- a/gnat/lsp_server.gpr +++ b/gnat/lsp_server.gpr @@ -73,7 +73,7 @@ project LSP_Server is null; when "dev" => case OS is - when "osx" => + when "osx" | "unix" => -- This ensure that address randomization is not active for backtracking for Switches ("Ada") use Linker'Switches ("ada") & ("-Wl,-no_pie"); when others =>