Skip to content

Commit ed139bb

Browse files
committed
Reverted to LLVM 20 as MSYS2 lagging behind
1 parent 18d327c commit ed139bb

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

.github/workflows/remoteBuild.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,26 @@ jobs:
6161
- name: Install LLVM and dependencies (Windows)
6262
if: ${{ matrix.os == 'windows-latest' }}
6363
run: |
64-
curl --output mingw-w64-x86_64-llvm-18.1.8-2-any.pkg.tar.zst "https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-llvm-18.1.8-2-any.pkg.tar.zst"
65-
curl --output mingw-w64-x86_64-llvm-libs-18.1.8-2-any.pkg.tar.zst "https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-llvm-libs-18.1.8-2-any.pkg.tar.zst"
64+
curl --output mingw-w64-x86_64-llvm-20.1.8-2-any.pkg.tar.zst "https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-llvm-20.1.8-2-any.pkg.tar.zst"
65+
curl --output mingw-w64-x86_64-llvm-libs-20.1.8-2-any.pkg.tar.zst "https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-llvm-libs-20.1.8-2-any.pkg.tar.zst"
6666
C:\msys64\usr\bin\pacman -S mingw-w64-x86_64-gcc --noconfirm
67-
C:\msys64\usr\bin\pacman -U mingw-w64-x86_64-llvm-libs-18.1.8-2-any.pkg.tar.zst --noconfirm
68-
C:\msys64\usr\bin\pacman -U mingw-w64-x86_64-llvm-18.1.8-2-any.pkg.tar.zst --noconfirm
67+
C:\msys64\usr\bin\pacman -U mingw-w64-x86_64-llvm-libs-20.1.8-2-any.pkg.tar.zst --noconfirm
68+
C:\msys64\usr\bin\pacman -U mingw-w64-x86_64-llvm-20.1.8-2-any.pkg.tar.zst --noconfirm
6969
C:\msys64\usr\bin\pacman -S mingw-w64-x86_64-zlib --noconfirm
7070
C:\msys64\usr\bin\pacman -S mingw-w64-x86_64-zstd --noconfirm
7171
- name: Install LLVM and dependencies (macOS)
7272
if: ${{ matrix.os == 'macos-latest' }}
7373
run: |
7474
brew install llvm # For clang
75-
brew install llvm@18
75+
brew install llvm@20
7676
brew install zstd
7777
- name: Install LLVM and dependencies (Ubuntu)
7878
if: ${{ matrix.os == 'ubuntu-latest' }}
7979
run: |
8080
sudo apt-get update
8181
sudo apt-get remove -y llvm
8282
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
83-
brew install llvm@18
83+
brew install llvm@20
8484
brew install zstd
8585
- name: Build (Windows)
8686
if: ${{ matrix.os == 'windows-latest' }}
@@ -89,7 +89,7 @@ jobs:
8989
env:
9090
CFLAGS: -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread
9191
CXXFLAGS: -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread
92-
LLVM_SYS_181_PREFIX: C:\msys64\mingw64
92+
LLVM_SYS_201_PREFIX: C:\msys64\mingw64
9393
zstd_DIR: C:\msys64\mingw64
9494
zstd_LIBRARY: C:\msys64\mingw64\lib\libzstd.a
9595
ZLIB_INCLUDE_DIR: C:\msys64\mingw64\include
@@ -100,7 +100,7 @@ jobs:
100100
cargo build --release
101101
env:
102102
CC: /opt/homebrew/opt/llvm/bin/clang
103-
LLVM_SYS_181_PREFIX: /opt/homebrew/opt/llvm@18
103+
LLVM_SYS_201_PREFIX: /opt/homebrew/opt/llvm@20
104104
zstd_DIR: /usr/local/opt/zstd
105105
CFLAGS: -static-libstdc++
106106
CXXFLAGS: -static-libstdc++
@@ -110,7 +110,7 @@ jobs:
110110
run: |
111111
cargo build --release
112112
env:
113-
LLVM_SYS_181_PREFIX: /home/linuxbrew/.linuxbrew/opt/llvm@18
113+
LLVM_SYS_201_PREFIX: /home/linuxbrew/.linuxbrew/opt/llvm@20
114114
zstd_DIR: /home/linuxbrew/.linuxbrew/opt/zstd
115115
- name: Archive Build Result (Windows)
116116
if: ${{ matrix.os == 'windows-latest' }}

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/build_llvm_ir/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ derive_more.workspace = true
1616
diagnostics = { version = "0.1.0", path = "../../support/diagnostics" }
1717
ir = { version = "0.1.0", path = "../../representations/ir" }
1818
itertools.workspace = true
19-
llvm-sys = { package = "llvm-sys", version = "211" }
19+
llvm-sys = { package = "llvm-sys", version = "201" }
2020
memo-map.workspace = true
2121
once_map.workspace = true
2222
primitives = { version = "0.1.0", path = "../../representations/primitives" }

src/components/job/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ std_ext = { version = "0.1.0", path = "../../support/std_ext" }
4141
target = { version = "0.1.0", path = "../../support/target" }
4242
text = { version = "0.1.0", path = "../../support/text" }
4343
threadpool = { version = "0.1.0", path = "../../support/threadpool" }
44-
llvm-sys = { package = "llvm-sys", version = "211" }
44+
llvm-sys = { package = "llvm-sys", version = "201" }
4545
target_layout = { version = "0.1.0", path = "../../support/target_layout" }

src/components/job/src/execution/lower/function_body.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ impl<'env> Executable<'env> for LowerFunctionBody<'env> {
8585

8686
let ir_func_ref = self.func;
8787

88+
let basicblocks = todo!();
89+
8890
let ir_func = &ir.funcs[ir_func_ref];
8991
ir_func.basicblocks.set(basicblocks).unwrap();
9092

0 commit comments

Comments
 (0)