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 ea4524c + 33ad3be commit 88de305Copy full SHA for 88de305
cmake/modules/SwiftWindowsSupport.cmake
@@ -84,9 +84,9 @@ endfunction()
84
macro(swift_swap_compiler_if_needed target)
85
if(NOT CMAKE_C_COMPILER_ID MATCHES Clang)
86
if(CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME)
87
- get_target_property(IMPORTED clang IMPORTED)
88
- if(IMPORTED)
89
- set(CLANG_LOCATION $<TARGET_FILE_DIR:clang>)
+ if(SWIFT_BUILT_STANDALONE)
+ get_target_property(CLANG_LOCATION clang LOCATION)
+ get_filename_component(CLANG_LOCATION ${CLANG_LOCATION} DIRECTORY)
90
else()
91
set(CLANG_LOCATION ${LLVM_RUNTIME_OUTPUT_INTDIR})
92
endif()
0 commit comments