[clang] [WebAssembly] Disable running `wasm-opt` on components (PR #98373)

Pavel Savara via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 13:04:20 PDT 2024


================
@@ -61,6 +61,10 @@ std::string wasm::Linker::getLinkerPath(const ArgList &Args) const {
   return ToolChain.GetProgramPath(ToolChain.getDefaultLinker());
 }
 
+static bool IsWasip2(const llvm::Triple &TargetTriple) {
+  return TargetTriple.getOSName() == "wasip2";
----------------
pavelsavara wrote:

I guess WASI preview3 and the future will be the same. Should we invert the test and only check for `wasip1` ?

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


More information about the cfe-commits mailing list