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:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -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)?)?
|
||||||
|
|||||||
Reference in New Issue
Block a user