Auto merge of #53237 - overdrivenpotato:wasm-export-table, r=alexcrichton
Export WASM table by default This allows loading a rust-generated `.wasm` binary in a host and using the exported table much like the `memory` export.
This commit is contained in:
commit
0f4b4987cd
1 changed files with 3 additions and 0 deletions
|
@ -1079,6 +1079,9 @@ impl<'a> Linker for WasmLd<'a> {
|
|||
// For now we just never have an entry symbol
|
||||
self.cmd.arg("--no-entry");
|
||||
|
||||
// Make the default table accessible
|
||||
self.cmd.arg("--export-table");
|
||||
|
||||
let mut cmd = Command::new("");
|
||||
::std::mem::swap(&mut cmd, &mut self.cmd);
|
||||
cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue