Skip to content

Commit f42517c

Browse files
committed
Test LLVM 20
1 parent c13845b commit f42517c

File tree

6 files changed

+7
-262
lines changed

6 files changed

+7
-262
lines changed

.github/workflows/build-and-test-template.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ jobs:
110110
111111
include("../common.jl")
112112
113-
src_name, src_version, sources, script, platforms, products, dependencies = configure_build([], version; update_sdk=false, assert=true, experimental_platforms=true, git_path=git_path=git_path="https://github.com/llvm/llvm-project.git", git_ver=ENV["LLVM_VERSION"])
113+
src_name, src_version, sources, script, platforms, products, dependencies = configure_build([], version; update_sdk=false, assert=true, experimental_platforms=true, git_path=git_path=git_path="https://github.com/Zentrik/llvm-project.git", git_ver=ENV["LLVM_VERSION"])
114114
products = Product[]
115115
build_tarballs(["--verbose", "${{ inputs.target }}", "--skip-audit"], src_name, src_version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"10", preferred_llvm_version=v"16", julia_compat="1.6")
116116
'
117117
- name: Work out which julia patches to apply
118118
id: julia_patches
119119
run: |
120120
set -o xtrace
121-
cd binarybuilder_storage/downloads/clones/llvm-project.git-1df819a03ecf6890e3787b27bfd4f160aeeeeacd50a98d003be8b0893f11a9be # https://github.com/JuliaPackaging/BinaryBuilderBase.jl/blob/b77c32e367f6db32517967d2b3c41f2c9850806b/src/Sources.jl#L209
121+
cd binarybuilder_storage/downloads/clones/llvm-project.git-a9a027c82b862657a45411258ff2bcaac49f6f6006da577b63d4b63427993629 # https://github.com/JuliaPackaging/BinaryBuilderBase.jl/blob/b77c32e367f6db32517967d2b3c41f2c9850806b/src/Sources.jl#L209
122122
123123
JULIA_PATCHES_TO_APPLY=()
124124
for patch in $GITHUB_WORKSPACE/julia-patches/*; do
@@ -187,6 +187,7 @@ jobs:
187187
echo $(git rev-parse HEAD)
188188
git remote add fork https://github.com/Zentrik/julia
189189
git fetch --all # https://jvns.ca/blog/2023/11/10/how-cherry-pick-and-revert-work/
190+
git checkout -b llvm-20 fork/llvm-20
190191
191192
for patch in ${{ needs.build_llvm_assert.outputs.JULIA_PATCHES_TO_APPLY }}; do
192193
git apply $GITHUB_WORKSPACE/julia-patches/$patch -v --3way
@@ -234,13 +235,14 @@ jobs:
234235
echo $(git rev-parse HEAD)
235236
git remote add fork https://github.com/Zentrik/julia
236237
git fetch --all # https://jvns.ca/blog/2023/11/10/how-cherry-pick-and-revert-work/
238+
git checkout -b llvm-20 fork/llvm-20
237239
238240
for patch in ${{ needs.build_llvm_assert.outputs.JULIA_PATCHES_TO_APPLY }}; do
239241
git apply $GITHUB_WORKSPACE/julia-patches/$patch -v --3way
240242
done
241243
242244
mkdir -p deps/srccache
243-
JULIA_LLVM_VERSION=$(grep 'version' stdlib/libLLVM_jll/Project.toml | sed 's/version = "\(.*\)"/\1/')
245+
JULIA_LLVM_VERSION=$(grep 'version' stdlib/libLLVM_jll/Project.toml | sed 's/version = "\(.*\)"/\1/')
244246
mv ../LLVM_full_assert.v${LLVM_VERSION_MAJOR}.0.0.${{ inputs.target }}.tar.gz deps/srccache/libLLVM.v$JULIA_LLVM_VERSION.${{ inputs.target }}.tar.gz
245247
246248
make -j4 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1 VERBOSE=1 LLVM_JLL_TAGS= LLVM_SHARED_LIB_VER_SUFFIX=${LLVM_VERSION_MAJOR}jl JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
run: |
3535
set -o xtrace
3636
if [ -z "$LLVM_VERSION" ]; then
37-
LLVM_VERSION=$(git ls-remote https://github.com/llvm/llvm-project.git | grep 'refs/heads/main$' | awk '{print $1}')
37+
LLVM_VERSION=$(git ls-remote https://github.com/Zentrik/llvm-project.git | grep 'refs/heads/llvm-20$' | awk '{print $1}')
3838
fi
39-
LLVM_VERSION_MAJOR=$(curl -s https://raw.githubusercontent.com/llvm/llvm-project/$LLVM_VERSION/cmake/Modules/LLVMVersion.cmake | grep -oP 'set\(LLVM_VERSION_MAJOR \K[0-9]+')
39+
LLVM_VERSION_MAJOR=$(curl -s https://raw.githubusercontent.com/Zentrik/llvm-project/$LLVM_VERSION/cmake/Modules/LLVMVersion.cmake | grep -oP 'set\(LLVM_VERSION_MAJOR \K[0-9]+')
4040
echo "LLVM_VERSION=$LLVM_VERSION" >> "$GITHUB_OUTPUT"
4141
echo "LLVM_VERSION_MAJOR=$LLVM_VERSION_MAJOR" >> "$GITHUB_OUTPUT"
4242
build:

julia-patches/29441e4f5fa5f5c7709f7cf180815ba97f611297

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

julia-patches/52c338daece1ea5556865373c777bdad79a05fd8

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

julia-patches/f3d2609af3031ddb54030548e86335f295cf49ca

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

julia-patches/ffba662dd275d1bdd5a5935f4d3cc372b5235d07

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

0 commit comments

Comments
 (0)