mirror of
https://github.com/google/benchmark.git
synced 2024-12-25 20:10:13 +08:00
roll back fatal error that breaks some platform (wasm) expectations
This commit is contained in:
parent
65668db273
commit
a73c039b1d
@ -508,7 +508,8 @@ int GetNumCPUsImpl() {
|
||||
int max_id = -1;
|
||||
std::ifstream f("/proc/cpuinfo");
|
||||
if (!f.is_open()) {
|
||||
PrintErrorAndDie("Failed to open /proc/cpuinfo");
|
||||
std::cerr << "Failed to open /proc/cpuinfo\n";
|
||||
return -1;
|
||||
}
|
||||
#if defined(__alpha__)
|
||||
const std::string Key = "cpus detected";
|
||||
|
Loading…
Reference in New Issue
Block a user