| 369 | } |
| 370 | |
| 371 | void cmFastbuildNormalTargetGenerator::ApplyLWYUToLinkerCommand( |
| 372 | FastbuildLinkerNode& linkerNode) |
| 373 | { |
| 374 | cmValue const lwyuCheck = |
| 375 | this->Makefile->GetDefinition("CMAKE_LINK_WHAT_YOU_USE_CHECK"); |
| 376 | if (this->UseLWYU && lwyuCheck) { |
| 377 | LogMessage("UseLWYU=true"); |
| 378 | std::string args = " -E __run_co_compile --lwyu="; |
| 379 | args += this->GetLocalGenerator()->EscapeForShell(*lwyuCheck); |
| 380 | |
| 381 | args += cmStrCat( |
| 382 | " --source=", |
| 383 | this->ConvertToFastbuildPath(this->GetGeneratorTarget()->GetFullPath( |
| 384 | Config, cmStateEnums::RuntimeBinaryArtifact, |
| 385 | /*realname=*/true))); |
| 386 | |
| 387 | LogMessage("LWUY args: " + args); |
| 388 | linkerNode.LinkerStampExe = cmSystemTools::GetCMakeCommand(); |
| 389 | linkerNode.LinkerStampExeArgs = std::move(args); |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | std::string cmFastbuildNormalTargetGenerator::ComputeDefines( |
| 394 | cmSourceFile const& srcFile) |
nothing calls this directly
no test coverage detected