Skip to content

Commit

Permalink
[WASM] Re-enable all stdlib tests on Linux
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kateinoigakukun committed Oct 3, 2020
1 parent cf1da48 commit 81496a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ elif run_os == 'wasi':
config.swift_test_options, config.swift_frontend_test_options])
subst_target_swift_frontend_mock_sdk = config.target_swift_frontend
subst_target_swift_frontend_mock_sdk_after = ""
config.target_run = '%s run --backend cranelift --' % config.wasmer
config.target_run = '%s run --singlepass --' % config.wasmer
if 'interpret' in lit_config.params:
use_interpreter_for_simple_runs()
config.target_sil_opt = (
Expand Down
2 changes: 1 addition & 1 deletion utils/webassembly/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
fi

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

Expand Down
8 changes: 7 additions & 1 deletion utils/webassembly/macos/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
set -ex

brew uninstall $(brew list | grep python@2)
brew install cmake ninja llvm sccache wasmer
brew install cmake ninja llvm sccache

# Install latest wasmer

if [ ! -e ~/.wasmer/bin/wasmer ]; then
curl https://get.wasmer.io -sSfL | sh
fi

SOURCE_PATH="$( cd "$(dirname $0)/../../../../" && pwd )"
SWIFT_PATH=$SOURCE_PATH/swift
Expand Down

0 comments on commit 81496a1

Please sign in to comment.