From c7a39b190ea4f5ac6fcdbe4f40188c2a617d88d6 Mon Sep 17 00:00:00 2001 From: Marko Mijalkovic Date: Thu, 9 Aug 2018 16:19:16 -0400 Subject: [PATCH] Export WASM table by default --- src/librustc_codegen_llvm/back/linker.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc_codegen_llvm/back/linker.rs b/src/librustc_codegen_llvm/back/linker.rs index e0a30ef5dbc9..ef98fae9cc7e 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