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

Method LinkerEnforcesNoAllowShLibUndefined

Source/cmGeneratorTarget.cxx:3984–3996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3982}
3983
3984bool cmGeneratorTarget::LinkerEnforcesNoAllowShLibUndefined(
3985 std::string const& config) const
3986{
3987 // FIXME(#25486): Account for the LINKER_TYPE target property.
3988 // Also factor out the hard-coded list below into a platform
3989 // information table based on the linker id.
3990 std::string ll = this->GetLinkerLanguage(config);
3991 std::string linkerIdVar = cmStrCat("CMAKE_", ll, "_COMPILER_LINKER_ID");
3992 cmValue linkerId = this->Makefile->GetDefinition(linkerIdVar);
3993 // The GNU bfd-based linker may enforce '--no-allow-shlib-undefined'
3994 // recursively by default. The Solaris linker has similar behavior.
3995 return linkerId && (*linkerId == "GNU" || *linkerId == "Solaris");
3996}
3997
3998std::string cmGeneratorTarget::GetPDBOutputName(
3999 std::string const& config) const

Callers 1

AddSharedDepItemMethod · 0.80

Calls 3

GetLinkerLanguageMethod · 0.95
cmStrCatFunction · 0.70
GetDefinitionMethod · 0.45

Tested by

no test coverage detected