Skip to content

Commit 5e3916e

Browse files
[WASM] Use SWIFT_PRIMARY_VARIANT_SDK instead of HOST_SDK
In this case, SWIFT_PRIMARY_VARIANT_ARCH is used but host SDK was not PRIMARY_SDK.
1 parent 72cd605 commit 5e3916e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ set(swift_runtime_library_compile_flags ${swift_runtime_compile_flags})
8888
list(APPEND swift_runtime_library_compile_flags -DswiftCore_EXPORTS)
8989
list(APPEND swift_runtime_library_compile_flags -I${SWIFT_SOURCE_DIR}/include)
9090

91-
set(sdk "${SWIFT_HOST_VARIANT_SDK}")
91+
set(sdk "${SWIFT_PRIMARY_VARIANT_SDK}")
9292
if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
9393
list(REMOVE_ITEM swift_runtime_sources ImageInspectionELF.cpp)
9494
set(static_binary_lnk_file_list)

0 commit comments

Comments
 (0)