Skip to content

Commit 73be35a

Browse files
Pass -sdk option from CMAKE_Swift_FLAGS
CMake does not support CMAKE_SYSROOT for Swift yet
1 parent 89ce759 commit 73be35a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/webassembly/build-foundation.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cmake -G Ninja \
2525
-DBUILD_TOOLS=OFF \
2626
-DHAS_LIBDISPATCH_API=OFF \
2727
-DCMAKE_Swift_COMPILER_FORCED=ON \
28+
-DCMAKE_Swift_FLAGS="-sdk $WASI_SYSROOT_PATH" \
2829
"${SOURCE_PATH}/swift-corelibs-foundation"
2930

3031
ninja

0 commit comments

Comments
 (0)