[clang] [WebAssembly] Disable running `wasm-opt` on components (PR #98373)
Alex Crichton via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 13:11:56 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";
----------------
alexcrichton wrote:
Sounds reasonable to me yeah 👍
https://github.com/llvm/llvm-project/pull/98373
More information about the cfe-commits
mailing list