Skip to content

Commit 67b162f

Browse files
author
aspen
committed
Explicitly check for iOS/tvOS.
1 parent 22e8ced commit 67b162f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl Step for Llvm {
176176
}
177177

178178
// Are we compiling for iOS/tvOS?
179-
if target.contains("apple") && !target.contains("darwin") {
179+
if target.contains("apple-ios") || target.contains("apple-tvos") {
180180
// These two defines prevent CMake from automatically trying to add a MacOSX sysroot, which leads to a compiler error.
181181
cfg.define("CMAKE_OSX_SYSROOT", "/");
182182
cfg.define("CMAKE_OSX_DEPLOYMENT_TARGET", "");

0 commit comments

Comments
 (0)