Add a CLI option for module linking (#2524)

* Add a CLI option for module linking

Forgot to add this earlier!

* Always apt-get update before install
This commit is contained in:
Alex Crichton
2020-12-18 14:12:02 -06:00
committed by GitHub
parent 4bee07d6f9
commit ce6e967eeb
2 changed files with 6 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ jobs:
# Test debug (DWARF) related functionality. # Test debug (DWARF) related functionality.
- run: | - run: |
sudo apt-get install -y gdb sudo apt-get update && sudo apt-get install -y gdb
cargo test test_debug_dwarf -- --ignored --test-threads 1 cargo test test_debug_dwarf -- --ignored --test-threads 1
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:

View File

@@ -127,6 +127,10 @@ struct CommonOptions {
#[structopt(long)] #[structopt(long)]
enable_multi_memory: bool, enable_multi_memory: bool,
/// Enable support for the module-linking proposal
#[structopt(long)]
enable_module_linking: bool,
/// Enable all experimental Wasm features /// Enable all experimental Wasm features
#[structopt(long)] #[structopt(long)]
enable_all: bool, enable_all: bool,
@@ -198,6 +202,7 @@ impl CommonOptions {
.wasm_multi_value(self.enable_multi_value.unwrap_or(true) || self.enable_all) .wasm_multi_value(self.enable_multi_value.unwrap_or(true) || self.enable_all)
.wasm_threads(self.enable_threads || self.enable_all) .wasm_threads(self.enable_threads || self.enable_all)
.wasm_multi_memory(self.enable_multi_memory || self.enable_all) .wasm_multi_memory(self.enable_multi_memory || self.enable_all)
.wasm_module_linking(self.enable_module_linking || self.enable_all)
.cranelift_opt_level(self.opt_level()) .cranelift_opt_level(self.opt_level())
.strategy(pick_compilation_strategy(self.cranelift, self.lightbeam)?)? .strategy(pick_compilation_strategy(self.cranelift, self.lightbeam)?)?
.profiler(pick_profiling_strategy(self.jitdump, self.vtune)?)? .profiler(pick_profiling_strategy(self.jitdump, self.vtune)?)?