mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
KWSys 2023-05-25 (c9f0da47)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit c9f0da473ac2c21b25c1819141c4828dd238b4d3 (master).
Upstream Shortlog
-----------------
Timo Röhling (1):
9119f1a1 SystemInformation: Tolerate empty /proc/cpuinfo
This commit is contained in:
committed by
Brad King
parent
068ff58785
commit
5df527f7af
@@ -3453,6 +3453,10 @@ bool SystemInformationImplementation::RetrieveInformationFromCpuInfoFile()
|
||||
fileSize++;
|
||||
}
|
||||
fclose(fd);
|
||||
if (fileSize < 2) {
|
||||
std::cout << "No data in /proc/cpuinfo" << std::endl;
|
||||
return false;
|
||||
}
|
||||
buffer.resize(fileSize - 2);
|
||||
// Number of logical CPUs (combination of multiple processors, multi-core
|
||||
// and SMT)
|
||||
|
||||
Reference in New Issue
Block a user