mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
cmNinjaNormalTargetGenerator: don't use || true for link-what-you-use
With the `|| true`, a linker error before running link-what-you-use would also use the `|| true` fragment and unconditionally succeed. Just skip the addition since `--lwyu=` ignores the return value anyways. Fixes #18524
This commit is contained in:
@@ -506,7 +506,6 @@ std::vector<std::string> cmNinjaNormalTargetGenerator::ComputeLinkCmd()
|
||||
gt.GetFullPath(cfgName, cmStateEnums::RuntimeBinaryArtifact,
|
||||
/*realname=*/true));
|
||||
cmakeCommand += targetOutputReal;
|
||||
cmakeCommand += " || true";
|
||||
linkCmds.push_back(std::move(cmakeCommand));
|
||||
}
|
||||
return linkCmds;
|
||||
|
||||
Reference in New Issue
Block a user