Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 10, 2024
1 parent 92a3ba6 commit 1f27f6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/lib/Driver/ToolChains/WebAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ std::string wasm::Linker::getLinkerPath(const ArgList &Args) const {
static bool TargetBuildsComponents(const llvm::Triple &TargetTriple) {
// WASIp2 and above are all based on components, so test for WASI but exclude
// the original `wasi` target in addition to the `wasip1` name.
return TargetTriple.isOSWASI()
&& TargetTriple.getOSName() != "wasip1"
&& TargetTriple.getOSName() != "wasi";
return TargetTriple.isOSWASI() && TargetTriple.getOSName() != "wasip1" &&
TargetTriple.getOSName() != "wasi";
}

void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
Expand Down

0 comments on commit 1f27f6a

Please sign in to comment.