roll back fatal error that breaks some platform (wasm) expectations

This commit is contained in:
Dominic Hamon 2024-07-17 13:18:38 +01:00
parent 65668db273
commit a73c039b1d

View File

@ -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";