Skip to content

Commit 0f4b498

Browse files
committed
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.
2 parents 5db71db + c7a39b1 commit 0f4b498

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/librustc_codegen_llvm/back/linker.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,9 @@ impl<'a> Linker for WasmLd<'a> {
10791079
// For now we just never have an entry symbol
10801080
self.cmd.arg("--no-entry");
10811081

1082+
// Make the default table accessible
1083+
self.cmd.arg("--export-table");
1084+
10821085
let mut cmd = Command::new("");
10831086
::std::mem::swap(&mut cmd, &mut self.cmd);
10841087
cmd

0 commit comments

Comments
 (0)