File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ UTILS_PATH=$SWIFT_PATH/utils/webassembly
9
9
case $( uname -s) in
10
10
Darwin)
11
11
DEPENDENCIES_SCRIPT=$UTILS_PATH /macos/install-dependencies.sh
12
+ HOST_SUFFIX=macosx-x86_64
12
13
;;
13
14
Linux)
14
15
DEPENDENCIES_SCRIPT=$UTILS_PATH /linux/install-dependencies.sh
16
+ HOST_SUFFIX=linux-x86_64
15
17
;;
16
18
* )
17
19
echo " Unrecognised platform $( uname -s) "
@@ -34,10 +36,8 @@ $BUILD_SCRIPT
34
36
35
37
echo " Build script completed, will attempt to run test suites..."
36
38
37
- if [[ " $( uname) " == " Darwin" ]]; then
38
- # workaround: host target test directory is necessary to use run-test
39
- mkdir -p " $TARGET_STDLIB_BUILD_DIR /test-macosx-x86_64"
40
- fi
39
+ # workaround: host target test directory is necessary to use run-test
40
+ mkdir -p " $TARGET_STDLIB_BUILD_DIR /test-$HOST_SUFFIX "
41
41
42
42
# Run tests
43
43
$RUN_TEST_BIN --build-dir " $TARGET_STDLIB_BUILD_DIR " --target wasi-wasm32 \
You can’t perform that action at this time.
0 commit comments