Skip to content

Commit adb00d9

Browse files
committed
WIP: Add flag to use the LLVM sysroot
1 parent d189e9f commit adb00d9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ jobs:
9696
9797
- name: Build
9898
run: |
99+
mkdir -p /home/runner/.rustup/toolchains/nightly-2026-04-29-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-unknown-linux-gnu/
100+
ln -s /usr/lib/libgccjit.so /home/runner/.rustup/toolchains/nightly-2026-04-29-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/lib/x86_64-unknown-linux-gnu/libgccjit.so
99101
./y.sh build --sysroot
100102
./y.sh test --cargo-tests
101103

build_system/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ impl ConfigInfo {
394394
rustflags.push(format!("-Zcodegen-backend={backend}"));
395395
} else {
396396
rustflags.extend_from_slice(&[
397-
"--sysroot".to_string(),
398-
self.sysroot_path.clone(),
397+
/*"--sysroot".to_string(),
398+
self.sysroot_path.clone(),*/
399399
format!("-Zcodegen-backend={}", self.cg_backend_path),
400400
]);
401401
}

0 commit comments

Comments
 (0)