File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -481,12 +481,6 @@ if(SWIFT_PATH_TO_CMARK_BUILD)
481481endif ()
482482message (STATUS "" )
483483
484- if ("${SWIFT_NATIVE_LLVM_TOOLS_PATH} " STREQUAL "" )
485- set (SWIFT_CROSS_COMPILING FALSE )
486- else ()
487- set (SWIFT_CROSS_COMPILING TRUE )
488- endif ()
489-
490484# Check if a prebuilt clang path was passed in, as this variable will be
491485# assigned if not, in SwiftSharedCMakeConfig.
492486if ("${SWIFT_NATIVE_CLANG_TOOLS_PATH} " STREQUAL "" )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ macro(swift_common_standalone_build_config_llvm product)
5858 fix_imported_targets_for_xcode("${LLVM_EXPORTED_TARGETS} " )
5959 endif ()
6060
61- if (NOT CMAKE_CROSSCOMPILING AND NOT SWIFT_CROSS_COMPILING )
61+ if (NOT CMAKE_CROSSCOMPILING )
6262 set (${product} _NATIVE_LLVM_TOOLS_PATH "${LLVM_TOOLS_BINARY_DIR} " )
6363 endif ()
6464
@@ -159,7 +159,7 @@ endmacro()
159159macro (swift_common_standalone_build_config_clang product)
160160 find_package (Clang CONFIG REQUIRED NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH )
161161
162- if (NOT CMAKE_CROSSCOMPILING )
162+ if (NOT CMAKE_CROSSCOMPILING AND NOT SWIFT_PREBUILT_CLANG )
163163 set (${product} _NATIVE_CLANG_TOOLS_PATH "${LLVM_TOOLS_BINARY_DIR} " )
164164 endif ()
165165
You can’t perform that action at this time.
0 commit comments