MCPcopy Create free account
hub / github.com/Kitware/CMake / AddLinkerLauncher

Method AddLinkerLauncher

Source/cmFastbuildNormalTargetGenerator.cxx:772–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770 }
771}
772void cmFastbuildNormalTargetGenerator::AddLinkerLauncher()
773{
774 std::string const linkerLauncher =
775 cmCommonTargetGenerator::GetLinkerLauncher(Config);
776 std::vector<std::string> args;
777#ifdef _WIN32
778 cmSystemTools::ParseWindowsCommandLine(linkerLauncher.c_str(), args);
779#else
780 cmSystemTools::ParseUnixCommandLine(linkerLauncher.c_str(), args);
781#endif
782 if (!args.empty()) {
783 std::string const exe = std::move(args[0]);
784 args.erase(args.begin());
785 this->GetGlobalGenerator()->AddLauncher(
786 FASTBUILD_LINKER_LAUNCHER_PREFIX, exe,
787 this->GeneratorTarget->GetLinkerLanguage(Config), cmJoin(args, " "));
788 }
789}
790void cmFastbuildNormalTargetGenerator::AddCMakeLauncher()
791{
792 // Add CMake launcher (might be used for static analysis).

Callers

nothing calls this directly

Calls 9

moveFunction · 0.85
c_strMethod · 0.80
eraseMethod · 0.80
AddLauncherMethod · 0.80
cmJoinFunction · 0.70
emptyMethod · 0.45
beginMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetLinkerLanguageMethod · 0.45

Tested by

no test coverage detected