Explicitly check for iOS/tvOS.
This commit is contained in:
parent
22e8ced9fd
commit
67b162f043
1 changed files with 1 additions and 1 deletions
|
|
@ -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", "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue