Skip to content

Commit 4d7a3cc

Browse files
[WASM] Apply run-test workaround for Linux platform
1 parent 4966e0e commit 4d7a3cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/webassembly/ci.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ UTILS_PATH=$SWIFT_PATH/utils/webassembly
99
case $(uname -s) in
1010
Darwin)
1111
DEPENDENCIES_SCRIPT=$UTILS_PATH/macos/install-dependencies.sh
12+
HOST_SUFFIX=macosx-x86_64
1213
;;
1314
Linux)
1415
DEPENDENCIES_SCRIPT=$UTILS_PATH/linux/install-dependencies.sh
16+
HOST_SUFFIX=linux-x86_64
1517
;;
1618
*)
1719
echo "Unrecognised platform $(uname -s)"
@@ -34,10 +36,8 @@ $BUILD_SCRIPT
3436

3537
echo "Build script completed, will attempt to run test suites..."
3638

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"
4141

4242
# Run tests
4343
$RUN_TEST_BIN --build-dir "$TARGET_STDLIB_BUILD_DIR" --target wasi-wasm32 \

0 commit comments

Comments
 (0)