Skip to content

Commit

Permalink
Introduced CMAKE_LIBTOOL
Browse files Browse the repository at this point in the history
The better approach is backported to upstream as
rust-lang/rust#93629
  • Loading branch information
catap committed Feb 13, 2022
1 parent 2f0802c commit 22be7a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ impl Step for Llvm {
cfg.define("LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN", "YES");
}

if let Some(ref libtool) = env::var_os("CMAKE_LIBTOOL") {
cfg.define("CMAKE_LIBTOOL", libtool);
}

configure_cmake(builder, target, &mut cfg, true);

// FIXME: we don't actually need to build all LLVM tools and all LLVM
Expand Down

0 comments on commit 22be7a9

Please sign in to comment.