From 67b162f043e7e52e71b7ae8bbbdb0a732ec85eb1 Mon Sep 17 00:00:00 2001 From: aspen Date: Wed, 1 Jul 2020 13:19:09 -0400 Subject: [PATCH] Explicitly check for iOS/tvOS. --- src/bootstrap/native.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 70c292e229da8..cceb794165059 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", "");