]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/native.rs
Rollup merge of #93862 - Mark-Simulacrum:apple-split, r=pietroalbini
[rust.git] / src / bootstrap / native.rs
index 4a754e6da12097293417c5f401728bf0c7e07ae2..14de1531f73ab0ca28e924ce2e10a0dca19aa51e 100644 (file)
@@ -353,6 +353,10 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
 
         configure_cmake(builder, target, &mut cfg, true);
 
+        for (key, val) in &builder.config.llvm_build_config {
+            cfg.define(key, val);
+        }
+
         // FIXME: we don't actually need to build all LLVM tools and all LLVM
         //        libraries here, e.g., we just want a few components and a few
         //        tools. Figure out how to filter them down and only build the right