about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraspen <luxx4x@protonmail.com>2020-07-01 12:15:24 -0400
committeraspen <luxx4x@protonmail.com>2020-07-01 12:15:24 -0400
commit4fd1c77a24288383600b02a7e3f11bf5eb718a32 (patch)
treefa93981a3589986bc9e6d438cf46961c9d1075f0
parent5f3dbd83af1a2872ec2514ea1a18116b800e4aeb (diff)
downloadrust-4fd1c77a24288383600b02a7e3f11bf5eb718a32.tar.gz
rust-4fd1c77a24288383600b02a7e3f11bf5eb718a32.zip
Document the CMake defines.
-rw-r--r--src/bootstrap/native.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index 8d50dd0a904..fe1891f3ddf 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -177,9 +177,12 @@ impl Step for Llvm {
 
         // Are we compiling for iOS/tvOS?
         if target.contains("apple") && !target.contains("darwin") {
+            // These two defines prevent CMake from automatically trying to add a MacOSX sysroot, which leads to a compiler error.
             cfg.define("CMAKE_OSX_SYSROOT", "/");
             cfg.define("CMAKE_OSX_DEPLOYMENT_TARGET", "");
-            cfg.define("LLVM_ENABLE_PLUGINS", "OFF"); // Prevent cmake from adding -bundle to CFLAGS automatically.
+            // Prevent cmake from adding -bundle to CFLAGS automatically, which leads to a compiler error because "-bitcode_bundle" also gets added.
+            cfg.define("LLVM_ENABLE_PLUGINS", "OFF");
+            // Zlib fails to link properly, leading to a compiler error.
             cfg.define("LLVM_ENABLE_ZLIB", "OFF");
         }