Skip to content

Commit

Permalink
Explicitly check for iOS/tvOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
aspen committed Jul 1, 2020
1 parent 22e8ced commit 67b162f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
Expand Down

0 comments on commit 67b162f

Please sign in to comment.