Skip to content

Commit 431f9a2

Browse files
zhuoweikateinoigakukun
authored andcommitted
WebAssembly: HACK: use llvm-ar from the WASI sdk
Ubuntu's GNU ar doesn't work with wasm-ld (doesn't see any files inside the archive)
1 parent 2815215 commit 431f9a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ ENABLE_LANGUAGE(C)
3636
include(SwiftUtils)
3737
include(CheckSymbolExists)
3838

39+
# WebAssembly: hack: use llvm-ar for creating static libraries; Ubuntu's GNU ar doesn't work with wasm-ld
40+
set(CMAKE_AR "${SWIFT_WASM_WASI_SDK_PATH}/bin/llvm-ar")
41+
3942
#
4043
# User-configurable options that control the inclusion and default build
4144
# behavior for components which may not strictly be necessary (tools, examples,

0 commit comments

Comments
 (0)