Skip to content

Commit 7203277

Browse files
[build] Configure library naming conventions for WebAssembly platforms
Use the same conventions used in wasi-libc and Emscripten
1 parent 772cff1 commit 7203277

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ macro(configure_sdk_unix name architectures)
300300
set(SWIFT_SDK_${prefix}_STATIC_LIBRARY_SUFFIX ".lib")
301301
set(SWIFT_SDK_${prefix}_IMPORT_LIBRARY_PREFIX "")
302302
set(SWIFT_SDK_${prefix}_IMPORT_LIBRARY_SUFFIX ".lib")
303-
elseif("${prefix}" STREQUAL "WASI")
303+
elseif("${prefix}" STREQUAL "WASI" OR "${prefix}" STREQUAL "EMSCRIPTEN")
304304
set(SWIFT_SDK_${prefix}_OBJECT_FORMAT "WASM")
305-
set(SWIFT_SDK_${prefix}_SHARED_LIBRARY_PREFIX "")
306-
set(SWIFT_SDK_${prefix}_SHARED_LIBRARY_SUFFIX ".wasm")
307-
set(SWIFT_SDK_${prefix}_STATIC_LIBRARY_PREFIX "")
305+
set(SWIFT_SDK_${prefix}_SHARED_LIBRARY_PREFIX "lib")
306+
set(SWIFT_SDK_${prefix}_SHARED_LIBRARY_SUFFIX ".so")
307+
set(SWIFT_SDK_${prefix}_STATIC_LIBRARY_PREFIX "lib")
308308
set(SWIFT_SDK_${prefix}_STATIC_LIBRARY_SUFFIX ".a")
309309
set(SWIFT_SDK_${prefix}_IMPORT_LIBRARY_PREFIX "")
310310
set(SWIFT_SDK_${prefix}_IMPORT_LIBRARY_SUFFIX "")

0 commit comments

Comments
 (0)