Skip to content

Commit

Permalink
Merge branch 'topic/alire-build' into 'master'
Browse files Browse the repository at this point in the history
Improve ALS Alire-based build script

See merge request eng/ide/ada_language_server!1862
  • Loading branch information
eliericha committed Jan 17, 2025
2 parents 1b21b6e + 22a7e7b commit 8149579
Show file tree
Hide file tree
Showing 13 changed files with 216 additions and 117 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
aws s3 cp s3://adacore-gha-tray-eu-west-1/toolchain/aarch64-Linux-gmp-6.2.1.tar.bz2 . --sse=AES256
sudo tar xjf aarch64-Linux-gcc-14.2.tar.bz2 -C /
sudo tar xjf aarch64-Linux-gmp-6.2.1.tar.bz2 -C /
# This step can fail on personal forks that don't have credentials for
# AWS. Allow failure so that the non-cross build still gets performed.
continue-on-error: true
- name: Fetch dependency commits numbers
shell: bash
if: ${{ env.TAG != env.DEFAULT_TAG }}
Expand All @@ -79,8 +82,6 @@ jobs:
- name: Build
shell: bash
run: |
alr settings --global --set dependencies.shared false
pip3 install e3-testsuite
scripts/build_als.sh all "$TAG"
- name: Build ALS with cross (Linux)
if: ${{ runner.os == 'Linux' }}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ testsuite/ada_lsp/project_symlinks/link
# Temporary and output directories of e3-testsuite
tmp/
out/

# Alire-generated directories
alire/
config/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ endif

all: coverage-instrument
ifeq ($(ALIRE),True)
alr build -- -XVERSION=$(VERSION) -XBUILD_DATE=$(BUILD_DATE) $(GPRBUILD_FLAGS)
alr build -- -XVERSION=$(VERSION) -XBUILD_DATE=$(BUILD_DATE) $(GPRBUILD_FLAGS) $(GPRBUILD_CARGS)
else
# We have our own s-memory.adb which overwrites the default System.Memory implementation
# For unclear reasons, this file is not recompiled when the version of GNAT was changed
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion gnat/lsp_common.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ abstract project LSP_Common is

package Compiler is
for Default_Switches ("Ada") use Common_Ada_Switches & Ada_Switches;
for Local_Configuration_Pragmas use "gnat.adc";
for Local_Configuration_Pragmas use "als-gnat.adc";
end Compiler;

package Pretty_Printer is
Expand Down
2 changes: 1 addition & 1 deletion gnat/lsp_gen.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ project LSP_Gen is

package Compiler is
for Default_Switches ("Ada") use Common_Ada_Switches & Ada_Switches;
for Local_Configuration_Pragmas use "gnat.adc";
for Local_Configuration_Pragmas use "als-gnat.adc";
end Compiler;

package Binder is
Expand Down
2 changes: 1 addition & 1 deletion gnat/lsp_server.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ project LSP_Server is
& ("-gnateDVERSION=""" & VERSION & """",
"-gnateDBUILD_DATE=""" & BUILD_DATE & """");
for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg");
for Local_Configuration_Pragmas use "gnat.adc";
for Local_Configuration_Pragmas use "als-gnat.adc";
end Compiler;

package Linker is
Expand Down
29 changes: 0 additions & 29 deletions index/gn/gnatformat/gnatformat-25.0.0-20240625.toml

This file was deleted.

1 change: 0 additions & 1 deletion index/index.toml

This file was deleted.

18 changes: 0 additions & 18 deletions index/la/lal_refactor/lal_refactor-25.0.0-20240625.toml

This file was deleted.

18 changes: 0 additions & 18 deletions index/pr/prettier_ada/prettier_ada-25.0.0-20240625.toml

This file was deleted.

Loading

0 comments on commit 8149579

Please sign in to comment.