LLVM 18 -> LLVM 19

This commit is contained in:
2026-04-27 12:17:15 +08:00
parent e5630139bf
commit e186bc2d1b
5 changed files with 10 additions and 10 deletions

4
Cargo.lock generated
View File

@@ -595,9 +595,9 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "llvm-sys"
version = "181.3.0"
version = "191.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e24aad69cbdb0c6ebe777262e9e6314dceba0d6e6a2a63e47563ccd293a2eda8"
checksum = "d0ad1fffbdac72a40b55aa58b31aa0efe925e277941b6705f128692b27f1d506"
dependencies = [
"anyhow",
"cc",

View File

@@ -97,7 +97,7 @@
doCheck = false;
configurePhase = ''
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS="-C link-arg=-L${compiler-rt}/x86_64-unknown-linux-gnu -C link-arg=-lclang_rt.profile"
export LLVM_SYS_181_PREFIX=${llvm-nac3-instrumented}
export LLVM_SYS_191_PREFIX=${llvm-nac3-instrumented}
'';
installPhase = ''
TARGET_DIR=$out/${pkgs.python3Packages.python.sitePackages}

View File

@@ -23,7 +23,7 @@ strum_macros = "0.28"
[dependencies.inkwell]
version = "0.8"
default-features = false
features = ["llvm18-1-prefer-dynamic", "target-x86", "target-arm", "target-riscv", "no-libffi-linking"]
features = ["llvm19-1-prefer-dynamic", "target-x86", "target-arm", "target-riscv", "no-libffi-linking"]
[dev-dependencies]
test-case = "3.3"

View File

@@ -1,19 +1,19 @@
{fetchurl}: rec {
version = "18.1.8";
version = "19.1.1";
cmake = fetchurl {
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/cmake-${version}.src.tar.xz";
hash = "sha256-Wbre9ZLdNIk80xnUKzI6qpkLRS0FxxgP8g8jqxtB6Dc=";
hash = "sha256-kqAW7P5GrXwY22QloBjCxu4Sa50OVRPW+tmJ/uZkj/o=";
};
llvm = fetchurl {
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/llvm-${version}.src.tar.xz";
hash = "sha256-9oz5Dzabx9AVi6cNhgsMs028Fj1v8OvGz6XlFbmy4o0=";
hash = "sha256-FafHf5w5RE2d1nVrdbmnASncvR40BySm5Fs7SI9VvEs=";
};
clang = fetchurl {
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/clang-${version}.src.tar.xz";
hash = "sha256-VyT+ChMIfVV5EEzt0vizvBCiEvt5oPzayY9IgOGfRRk=";
hash = "sha256-c4gczwZcNcpndSwtS23QFXFAMw7vMY+4DxpiaBFFz3w=";
};
compiler-rt = fetchurl {
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/compiler-rt-${version}.src.tar.xz";
hash = "sha256-4FTpmpySQHIGFukny1I2OrvItPHvAoa609957I/fiS8=";
hash = "sha256-tj3G1iEHUusetC0oVJNGuzVDlRv70BQVLuxkj1261Kc=";
};
}

View File

@@ -54,7 +54,7 @@ in rec {
${silenceFontconfig}
export PYO3_CONFIG_FILE=Z:${pyo3-mingw-config}
export CC=clang
export LLVM_SYS_181_PREFIX=Z:${llvm}
export LLVM_SYS_191_PREFIX=Z:${llvm}
wine cargo build --release -p nac3artiq
'';
installPhase = ''