diff options
| author | aspen <luxx4x@protonmail.com> | 2020-07-01 12:15:24 -0400 |
|---|---|---|
| committer | aspen <luxx4x@protonmail.com> | 2020-07-01 12:15:24 -0400 |
| commit | 4fd1c77a24288383600b02a7e3f11bf5eb718a32 (patch) | |
| tree | fa93981a3589986bc9e6d438cf46961c9d1075f0 | |
| parent | 5f3dbd83af1a2872ec2514ea1a18116b800e4aeb (diff) | |
| download | rust-4fd1c77a24288383600b02a7e3f11bf5eb718a32.tar.gz rust-4fd1c77a24288383600b02a7e3f11bf5eb718a32.zip | |
Document the CMake defines.
| -rw-r--r-- | src/bootstrap/native.rs | 5 |
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"); } |
