1
Fork 0

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:
bors 2018-08-15 14:40:46 +00:00
commit 0f4b4987cd

View file

@ -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