diff options
| author | aspen <luxx4x@protonmail.com> | 2020-07-01 13:19:09 -0400 |
|---|---|---|
| committer | aspen <luxx4x@protonmail.com> | 2020-07-01 13:19:09 -0400 |
| commit | 67b162f043e7e52e71b7ae8bbbdb0a732ec85eb1 (patch) | |
| tree | 7c8a6bffa0b11c0b814431b7d2961efb28bcd620 /src | |
| parent | 22e8ced9fd3ca7767c1ed479d736358b190bf22d (diff) | |
| download | rust-67b162f043e7e52e71b7ae8bbbdb0a732ec85eb1.tar.gz rust-67b162f043e7e52e71b7ae8bbbdb0a732ec85eb1.zip | |
Explicitly check for iOS/tvOS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/native.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 70c292e229d..cceb7941650 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -176,7 +176,7 @@ impl Step for Llvm { } // Are we compiling for iOS/tvOS? - if target.contains("apple") && !target.contains("darwin") { + if target.contains("apple-ios") || target.contains("apple-tvos") { // 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", ""); |
