From 53fa533922bcb3229edf2e7a1ca476b6c68a1ebc Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Thu, 3 Feb 2022 21:54:31 +0100 Subject: [PATCH] Introduced `CMAKE_LIBTOOL` The better approach is backported to upstream as https://github.com/rust-lang/rust/pull/93629 --- src/bootstrap/native.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 7bf9ea2688..4d53c2a7d4 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -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