Skip to content

Commit 81496a1

Browse files
[WASM] Re-enable all stdlib tests on Linux
The wasmer cranelift backend is broken since 1.0.0-alpha3, so we use singlepass backend instead until the bug will be resolved. wasmerio/wasmer#1674
1 parent cf1da48 commit 81496a1

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ elif run_os == 'wasi':
14371437
config.swift_test_options, config.swift_frontend_test_options])
14381438
subst_target_swift_frontend_mock_sdk = config.target_swift_frontend
14391439
subst_target_swift_frontend_mock_sdk_after = ""
1440-
config.target_run = '%s run --backend cranelift --' % config.wasmer
1440+
config.target_run = '%s run --singlepass --' % config.wasmer
14411441
if 'interpret' in lit_config.params:
14421442
use_interpreter_for_simple_runs()
14431443
config.target_sil_opt = (

utils/webassembly/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
4040
fi
4141

4242
if [[ "$(uname)" == "Linux" ]]; then
43-
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/ || true
43+
$RUN_TEST_BIN --build-dir $TARGET_BUILD_DIR --target wasi-wasm32 test/stdlib/
4444
echo "Skip running test suites for Linux"
4545
else
4646

utils/webassembly/macos/install-dependencies.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
set -ex
44

55
brew uninstall $(brew list | grep python@2)
6-
brew install cmake ninja llvm sccache wasmer
6+
brew install cmake ninja llvm sccache
7+
8+
# Install latest wasmer
9+
10+
if [ ! -e ~/.wasmer/bin/wasmer ]; then
11+
curl https://get.wasmer.io -sSfL | sh
12+
fi
713

814
SOURCE_PATH="$( cd "$(dirname $0)/../../../../" && pwd )"
915
SWIFT_PATH=$SOURCE_PATH/swift

0 commit comments

Comments
 (0)