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