Skip to content

Commit d84da25

Browse files
committed
[Apple Silicon] Use SWIFT_CROSS_COMPILING to use build-time tools (tblgen) from the native build
1 parent 3b74951 commit d84da25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@ if(SWIFT_PATH_TO_CMARK_BUILD)
462462
endif()
463463
message(STATUS "")
464464

465+
if("${SWIFT_NATIVE_LLVM_TOOLS_PATH}" STREQUAL "")
466+
set(SWIFT_CROSS_COMPILING FALSE)
467+
else()
468+
set(SWIFT_CROSS_COMPILING TRUE)
469+
endif()
470+
465471
include(SwiftSharedCMakeConfig)
466472

467473
# NOTE: We include this before SwiftComponents as it relies on some LLVM CMake

0 commit comments

Comments
 (0)