Skip to content

Commit 7863b5a

Browse files
committed
Use llvm@18 to fix build issue.
1 parent 95048cf commit 7863b5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/actions/build-wasm/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ runs:
1818
shell: bash
1919
run: |
2020
brew install cmake
21-
brew install llvm
21+
brew install llvm@18
2222
brew install binaryen
2323
curl -sL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/libclang_rt.builtins-wasm32-wasi-22.0.tar.gz | \
24-
tar x -zf - -C /opt/homebrew/opt/llvm/lib/clang/18*
24+
tar x -zf - -C /opt/homebrew/opt/llvm@18/lib/clang/18*
2525
curl -sS -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sysroot-22.0.tar.gz | \
2626
sudo tar x -zf - -C /opt
2727
- name: Install Rust Nightly
@@ -32,7 +32,7 @@ runs:
3232
- name: Set environment variable
3333
shell: bash
3434
run: |
35-
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
35+
echo "/opt/homebrew/opt/llvm@18/bin" >> $GITHUB_PATH
3636
- name: Flutter pub get
3737
working-directory: sqlite3
3838
shell: bash
@@ -43,5 +43,5 @@ runs:
4343
working-directory: sqlite3
4444
shell: bash
4545
run: |
46-
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
46+
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm@18/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
4747
cmake --build .dart_tool/sqlite3_build/ -t output -j

0 commit comments

Comments
 (0)