Skip to content

Commit f18c477

Browse files
authored
Merge pull request #1444 from swiftwasm/maxd/update-wasi-sdk
Update WASI SDK to fix C++ setjmp/signal headers Fixes the issue swiftwasm#595 with C++ packages for the development snapshots made from the `swiftwasm` branch. Previously C++ dependencies couldn't be built as default Clang headers weren't tailored to support WASI, WebAssembly/wasi-sdk#93 being one of the examples. This should also unblock TokamakUI/Tokamak#170.
2 parents 3819961 + e0d48a5 commit f18c477

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

utils/webassembly/install-wasi-sdk.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ SOURCE_PATH="$( cd "$(dirname $0)/../../../" && pwd )"
66

77
cd $SOURCE_PATH
88

9-
WASI_SDK_URL="https://github.com/swiftwasm/wasi-sdk/releases/download/0.2.0-swiftwasm/dist-$2-latest.tgz.zip"
9+
WASI_SDK_URL="https://github.com/swiftwasm/wasi-sdk/releases/download/0.2.2-swiftwasm/dist-$2.zip"
1010

11-
[ ! -e dist-wasi-sdk.tgz.zip ] && \
12-
wget -O dist-wasi-sdk.tgz.zip $WASI_SDK_URL
13-
unzip -u dist-wasi-sdk.tgz.zip -d .
11+
[ ! -e dist-wasi-sdk.zip ] && \
12+
wget -O dist-wasi-sdk.zip $WASI_SDK_URL
13+
unzip -u dist-wasi-sdk.zip -d .
1414
WASI_SDK_TAR_PATH=$(find . -type f -name "wasi-sdk-*")
1515
WASI_SDK_FULL_NAME=$(basename $WASI_SDK_TAR_PATH -$1.tar.gz)
1616
tar xfz $WASI_SDK_TAR_PATH

utils/webassembly/linux/install-dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636

3737
cmake --version
3838

39-
$SWIFT_PATH/utils/webassembly/install-wasi-sdk.sh linux ubuntu
39+
$SWIFT_PATH/utils/webassembly/install-wasi-sdk.sh linux ubuntu-18.04
4040

4141
# Link wasm32-wasi-unknown to wasm32-wasi because clang finds crt1.o from sysroot
4242
# with os and environment name `getMultiarchTriple`.

utils/webassembly/macos/install-dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd $SWIFT_PATH
1313

1414
cd $SOURCE_PATH
1515

16-
$SWIFT_PATH/utils/webassembly/install-wasi-sdk.sh macos macos
16+
$SWIFT_PATH/utils/webassembly/install-wasi-sdk.sh macos macos-10.15
1717

1818
# Link sysroot/usr/include to sysroot/include because Darwin sysroot doesn't
1919
# find header files in sysroot/include but sysroot/usr/include

0 commit comments

Comments
 (0)