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

Method PlatformIs32Bit

Source/cmMakefile.cxx:2226–2237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2224}
2225
2226bool cmMakefile::PlatformIs32Bit() const
2227{
2228 if (cmValue plat_abi = this->GetDefinition("CMAKE_INTERNAL_PLATFORM_ABI")) {
2229 if (*plat_abi == "ELF X32"_s) {
2230 return false;
2231 }
2232 }
2233 if (cmValue sizeof_dptr = this->GetDefinition("CMAKE_SIZEOF_VOID_P")) {
2234 return atoi(sizeof_dptr->c_str()) == 4;
2235 }
2236 return false;
2237}
2238
2239bool cmMakefile::PlatformIs64Bit() const
2240{

Callers 3

CreateIfAnyMethod · 0.80
InitialPassMethod · 0.80
InitialPassMethod · 0.80

Calls 2

GetDefinitionMethod · 0.95
c_strMethod · 0.80

Tested by

no test coverage detected