]> git.lizzy.rs Git - rust.git/commitdiff
Export WASM table by default
authorMarko Mijalkovic <marko.mijalkovic97@gmail.com>
Thu, 9 Aug 2018 20:19:16 +0000 (16:19 -0400)
committerMarko Mijalkovic <marko.mijalkovic97@gmail.com>
Thu, 9 Aug 2018 20:19:16 +0000 (16:19 -0400)
src/librustc_codegen_llvm/back/linker.rs

index e0a30ef5dbc9abe10befecbda24285ef84a394fd..ef98fae9cc7ee46af16dc668a0b2cecf9954a7ee 100644 (file)
@@ -1079,6 +1079,9 @@ fn finalize(&mut self) -> Command {
         // 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