File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ cd $SWIFT_PATH
13
13
14
14
cd $SOURCE_PATH
15
15
16
- wget -O dist-wasi-sdk.tgz.zip " https://github.com/swiftwasm/wasi-sdk/releases/download/0.2.0-swiftwasm/dist-macos-latest.tgz.zip"
17
- unzip dist-wasi-sdk.tgz.zip -d .
16
+ [ ! -e dist-wasi-sdk.tgz.zip ] && wget -O dist-wasi-sdk.tgz.zip " https://github.com/swiftwasm/wasi-sdk/releases/download/0.2.0-swiftwasm/dist-macos-latest.tgz.zip"
17
+ unzip -u dist-wasi-sdk.tgz.zip -d .
18
18
WASI_SDK_TAR_PATH=$( find . -type f -name " wasi-sdk-*" )
19
19
WASI_SDK_FULL_NAME=$( basename $WASI_SDK_TAR_PATH -macos.tar.gz)
20
20
tar xfz $WASI_SDK_TAR_PATH
21
+ rm -rf ./wasi-sdk
21
22
mv $WASI_SDK_FULL_NAME ./wasi-sdk
22
23
23
24
# Link sysroot/usr/include to sysroot/include because Darwin sysroot doesn't
You can’t perform that action at this time.
0 commit comments