Skip to content

Commit

Permalink
rust: unbreak building with bundled LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
mguentner authored and zimbatm committed Oct 22, 2017
1 parent 1d6eaac commit e30e201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/compilers/rust/rustc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ stdenv.mkDerivation {
configureFlags = configureFlags
++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath" ]
++ [ "--enable-vendor" "--disable-locked-deps" ]
++ [ "--enable-llvm-link-shared" ]
# ++ [ "--jemalloc-root=${jemalloc}/lib"
++ [ "--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 (targets != []) "--target=${target}"
++ optional (!forceBundledLLVM) "--llvm-root=${llvmShared}";

patches = patches ++ targetPatches;

# the rust build system complains that nix alters the checksums
dontFixLibtool = true;

passthru.target = target;

postPatch = ''
Expand Down

0 comments on commit e30e201

Please sign in to comment.