We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d71d31c + cca1312 commit cd610b8Copy full SHA for cd610b8
cmake/modules/SwiftWindowsSupport.cmake
@@ -81,7 +81,7 @@ endfunction()
81
# NOTE(compnerd) we use a macro here as this modifies global variables
82
macro(swift_swap_compiler_if_needed target)
83
if(NOT CMAKE_C_COMPILER_ID MATCHES Clang)
84
- if(CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME)
+ if(CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME AND CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
85
if(SWIFT_BUILT_STANDALONE)
86
get_target_property(CLANG_LOCATION clang LOCATION)
87
get_filename_component(CLANG_LOCATION ${CLANG_LOCATION} DIRECTORY)
0 commit comments