diff options
| author | bors <bors@rust-lang.org> | 2018-08-15 14:40:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-15 14:40:46 +0000 |
| commit | 0f4b4987cd6dea5406dec0634770839fb31ce72c (patch) | |
| tree | ec3c2b08acfcc603ddbe4096a79fc03ce9ba2ab7 /src | |
| parent | 5db71dbae8c9cd0e6ac0558c54f2e2a6b1147d17 (diff) | |
| parent | c7a39b190ea4f5ac6fcdbe4f40188c2a617d88d6 (diff) | |
| download | rust-0f4b4987cd6dea5406dec0634770839fb31ce72c.tar.gz rust-0f4b4987cd6dea5406dec0634770839fb31ce72c.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_codegen_llvm/back/linker.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/back/linker.rs b/src/librustc_codegen_llvm/back/linker.rs index e0a30ef5dbc..ef98fae9cc7 100644 --- a/src/librustc_codegen_llvm/back/linker.rs +++ b/src/librustc_codegen_llvm/back/linker.rs @@ -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 |
