Skip to content

Commit

Permalink
Auto merge of rust-lang#53237 - overdrivenpotato:wasm-export-table, r…
Browse files Browse the repository at this point in the history
…=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.
  • Loading branch information
bors committed Aug 15, 2018
2 parents 5db71db + c7a39b1 commit 0f4b498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_codegen_llvm/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f4b498

Please sign in to comment.