Skip to content

Commit

Permalink
infra: Update to LLVM 17 (#519)
Browse files Browse the repository at this point in the history
This fixes macos builds not building correctly because of a missing
LLVM 14 package.
  • Loading branch information
GabCoolDude authored Jan 12, 2025
1 parent c2ae49e commit f1dee50
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ jobs:
with:
global-json-file: global.json

- name: Setup LLVM 14
- name: Setup LLVM 17
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
sudo ./llvm.sh 17
- name: Install rcodesign
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ jobs:
with:
global-json-file: global.json

- name: Setup LLVM 15
- name: Setup LLVM 17
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 15
sudo ./llvm.sh 17
- name: Install rcodesign
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ jobs:
with:
global-json-file: global.json

- name: Setup LLVM 15
- name: Setup LLVM 17
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 15
sudo ./llvm.sh 17
- name: Install rcodesign
run: |
Expand Down
2 changes: 1 addition & 1 deletion distribution/macos/bundle_fix_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
else:
OTOOL = shutil.which("llvm-otool")
if OTOOL is None:
for llvm_ver in [15, 14, 13]:
for llvm_ver in [17, 16, 15, 14, 13]:
otool_path = shutil.which(f"llvm-otool-{llvm_ver}")
if otool_path is not None:
OTOOL = otool_path
Expand Down
2 changes: 1 addition & 1 deletion distribution/macos/construct_universal_dylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
LIPO = shutil.which("llvm-lipo")

if LIPO is None:
for llvm_ver in [15, 14, 13]:
for llvm_ver in [17, 16, 15, 14, 13]:
lipo_path = shutil.which(f"llvm-lipo-{llvm_ver}")
if lipo_path is not None:
LIPO = lipo_path
Expand Down
4 changes: 2 additions & 2 deletions distribution/macos/create_macos_build_ava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ python3 "$BASE_DIR/distribution/macos/construct_universal_dylib.py" "$ARM64_APP_

if ! [ -x "$(command -v lipo)" ];
then
if ! [ -x "$(command -v llvm-lipo-14)" ];
if ! [ -x "$(command -v llvm-lipo-17)" ];
then
LIPO=llvm-lipo
else
LIPO=llvm-lipo-14
LIPO=llvm-lipo-17
fi
else
LIPO=lipo
Expand Down
4 changes: 2 additions & 2 deletions distribution/macos/create_macos_build_headless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ python3 "$BASE_DIR/distribution/macos/construct_universal_dylib.py" "$ARM64_OUTP

if ! [ -x "$(command -v lipo)" ];
then
if ! [ -x "$(command -v llvm-lipo-14)" ];
if ! [ -x "$(command -v llvm-lipo-17)" ];
then
LIPO=llvm-lipo
else
LIPO=llvm-lipo-14
LIPO=llvm-lipo-17
fi
else
LIPO=lipo
Expand Down

0 comments on commit f1dee50

Please sign in to comment.