mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
rust: unbreak building with bundled LLVM
This commit is contained in:
parent
1d6eaac764
commit
e30e201027
@ -48,15 +48,18 @@ stdenv.mkDerivation {
|
|||||||
configureFlags = configureFlags
|
configureFlags = configureFlags
|
||||||
++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath" ]
|
++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath" ]
|
||||||
++ [ "--enable-vendor" "--disable-locked-deps" ]
|
++ [ "--enable-vendor" "--disable-locked-deps" ]
|
||||||
++ [ "--enable-llvm-link-shared" ]
|
|
||||||
# ++ [ "--jemalloc-root=${jemalloc}/lib"
|
# ++ [ "--jemalloc-root=${jemalloc}/lib"
|
||||||
++ [ "--default-linker=${stdenv.cc}/bin/cc" "--default-ar=${binutils.out}/bin/ar" ]
|
++ [ "--default-linker=${stdenv.cc}/bin/cc" "--default-ar=${binutils.out}/bin/ar" ]
|
||||||
|
++ optional (!forceBundledLLVM) [ "--enable-llvm-link-shared" ]
|
||||||
++ optional (stdenv.cc.cc ? isClang) "--enable-clang"
|
++ optional (stdenv.cc.cc ? isClang) "--enable-clang"
|
||||||
++ optional (targets != []) "--target=${target}"
|
++ optional (targets != []) "--target=${target}"
|
||||||
++ optional (!forceBundledLLVM) "--llvm-root=${llvmShared}";
|
++ optional (!forceBundledLLVM) "--llvm-root=${llvmShared}";
|
||||||
|
|
||||||
patches = patches ++ targetPatches;
|
patches = patches ++ targetPatches;
|
||||||
|
|
||||||
|
# the rust build system complains that nix alters the checksums
|
||||||
|
dontFixLibtool = true;
|
||||||
|
|
||||||
passthru.target = target;
|
passthru.target = target;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user