File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,21 @@ set -ex
5
5
SOURCE_PATH=" $( cd " $( dirname $0 ) /../../.." && pwd ) "
6
6
SWIFT_PATH=$SOURCE_PATH /swift
7
7
UTILS_PATH=$SWIFT_PATH /utils/webassembly
8
- if [[ " $( uname) " == " Linux" ]]; then
9
- DEPENDENCIES_SCRIPT=$UTILS_PATH /linux/install-dependencies.sh
10
- else
11
- DEPENDENCIES_SCRIPT=$UTILS_PATH /macos/install-dependencies.sh
12
- fi
8
+
9
+ case $( uname -s) in
10
+ Darwin)
11
+ DEPENDENCIES_SCRIPT=$UTILS_PATH /macos/install-dependencies.sh
12
+ HOST_SUFFIX=macosx-x86_64
13
+ ;;
14
+ Linux)
15
+ DEPENDENCIES_SCRIPT=$UTILS_PATH /linux/install-dependencies.sh
16
+ HOST_SUFFIX=linux-x86_64
17
+ ;;
18
+ * )
19
+ echo " Unrecognised platform $( uname -s) "
20
+ exit 1
21
+ ;;
22
+ esac
13
23
14
24
BUILD_SCRIPT=$UTILS_PATH /build-toolchain.sh
15
25
RUN_TEST_BIN=$SWIFT_PATH /utils/run-test
37
47
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
38
48
39
49
# Run test but ignore failure temporarily
40
- $BUILD_SCRIPT -t || true
50
+ ninja check-swift-wasi-wasm32 -C $TARGET_BUILD_DIR /swift- $HOST_SUFFIX || true
41
51
fi
You can’t perform that action at this time.
0 commit comments