Skip to content

Commit 82954fc

Browse files
committed
SwiftShims: use the correct variable for the behaviour check
We would check the SYSTEM_NAME rather than the HOST_SYSTEM_NAME variable where the former is the host and the latter is the build. The behaviour is concerning the build and so we would behave incorrectly.
1 parent a3d7942 commit 82954fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/swift/shims/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ else()
129129
set(clang_headers_location "${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION_MAJOR}")
130130
endif()
131131

132-
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
132+
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
133133
set(cmake_symlink_option "copy_directory")
134134
else()
135135
set(cmake_symlink_option "create_symlink")

0 commit comments

Comments
 (0)