================
@@ -465,6 +468,12 @@ Interpreter::Parse(llvm::StringRef Code) {
       return std::move(Err);
   }
 
+  // Re-apply stored -mllvm options; wasm builds reset LLVM opts in wasm-ld.
+  llvm::Triple Triple(getCompilerInstance()->getTargetOpts().Triple);
+  if (Triple.isWasm()) {
+    getCompilerInstance()->parseLLVMArgs();
----------------
anutosh491 wrote:

Yeah that would have been the best case possible :\

Not having to re-parse the args. 

Hacked around with commenting it out and it works as we want. But not yet sure 
how to do it organically.

Let me write to the lldWasm guys somewhere and see If I get a reply.

https://github.com/llvm/llvm-project/pull/132670
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to