[clang] [clang-repl] Improve flags responsible for generating shared wasm binaries (PR #116735)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 23:22:46 PST 2024


================
@@ -72,13 +72,13 @@ llvm::Error WasmIncrementalExecutor::addModule(PartialTranslationUnit &PTU) {
   OutputFile.close();
 
   std::vector<const char *> LinkerArgs = {"wasm-ld",
-                                          "-pie",
+                                          "-shared",
                                           "--import-memory",
                                           "--no-entry",
                                           "--export-all",
                                           "--experimental-pic",
-                                          "--no-export-dynamic",
----------------
anutosh491 wrote:

This change has been made cause `-shared` by default invokes `--export-dynamic`.
Not a breaking change that harms us (but surely we would want `shared` instead of `pie`) 

https://github.com/llvm/llvm-project/pull/116735


More information about the cfe-commits mailing list