Skip to content

Commit 8149579

Browse files
committed
Merge branch 'topic/alire-build' into 'master'
Improve ALS Alire-based build script See merge request eng/ide/ada_language_server!1862
2 parents 1b21b6e + 22a7e7b commit 8149579

File tree

13 files changed

+216
-117
lines changed

13 files changed

+216
-117
lines changed

.github/workflows/build-binaries.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
aws s3 cp s3://adacore-gha-tray-eu-west-1/toolchain/aarch64-Linux-gmp-6.2.1.tar.bz2 . --sse=AES256
6767
sudo tar xjf aarch64-Linux-gcc-14.2.tar.bz2 -C /
6868
sudo tar xjf aarch64-Linux-gmp-6.2.1.tar.bz2 -C /
69+
# This step can fail on personal forks that don't have credentials for
70+
# AWS. Allow failure so that the non-cross build still gets performed.
71+
continue-on-error: true
6972
- name: Fetch dependency commits numbers
7073
shell: bash
7174
if: ${{ env.TAG != env.DEFAULT_TAG }}
@@ -79,8 +82,6 @@ jobs:
7982
- name: Build
8083
shell: bash
8184
run: |
82-
alr settings --global --set dependencies.shared false
83-
pip3 install e3-testsuite
8485
scripts/build_als.sh all "$TAG"
8586
- name: Build ALS with cross (Linux)
8687
if: ${{ runner.os == 'Linux' }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ testsuite/ada_lsp/project_symlinks/link
110110
# Temporary and output directories of e3-testsuite
111111
tmp/
112112
out/
113+
114+
# Alire-generated directories
115+
alire/
116+
config/

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ endif
105105

106106
all: coverage-instrument
107107
ifeq ($(ALIRE),True)
108-
alr build -- -XVERSION=$(VERSION) -XBUILD_DATE=$(BUILD_DATE) $(GPRBUILD_FLAGS)
108+
alr build -- -XVERSION=$(VERSION) -XBUILD_DATE=$(BUILD_DATE) $(GPRBUILD_FLAGS) $(GPRBUILD_CARGS)
109109
else
110110
# We have our own s-memory.adb which overwrites the default System.Memory implementation
111111
# For unclear reasons, this file is not recompiled when the version of GNAT was changed
File renamed without changes.

gnat/lsp_common.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ abstract project LSP_Common is
8585

8686
package Compiler is
8787
for Default_Switches ("Ada") use Common_Ada_Switches & Ada_Switches;
88-
for Local_Configuration_Pragmas use "gnat.adc";
88+
for Local_Configuration_Pragmas use "als-gnat.adc";
8989
end Compiler;
9090

9191
package Pretty_Printer is

gnat/lsp_gen.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ project LSP_Gen is
7777

7878
package Compiler is
7979
for Default_Switches ("Ada") use Common_Ada_Switches & Ada_Switches;
80-
for Local_Configuration_Pragmas use "gnat.adc";
80+
for Local_Configuration_Pragmas use "als-gnat.adc";
8181
end Compiler;
8282

8383
package Binder is

gnat/lsp_server.gpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ project LSP_Server is
6363
& ("-gnateDVERSION=""" & VERSION & """",
6464
"-gnateDBUILD_DATE=""" & BUILD_DATE & """");
6565
for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg");
66-
for Local_Configuration_Pragmas use "gnat.adc";
66+
for Local_Configuration_Pragmas use "als-gnat.adc";
6767
end Compiler;
6868

6969
package Linker is

index/gn/gnatformat/gnatformat-25.0.0-20240625.toml

Lines changed: 0 additions & 29 deletions
This file was deleted.

index/index.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

index/la/lal_refactor/lal_refactor-25.0.0-20240625.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)