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 6, 2022
1 parent 96fcab3 commit 55f4f80
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 @@ -293,6 +293,10 @@ impl Step for Llvm {
cfg.define("PYTHON_EXECUTABLE", python);
}

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

configure_cmake(builder, target, &mut cfg);

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

0 comments on commit 55f4f80

Please sign in to comment.