AUTOGEN_PARALLEL ignores specified number
In some recent changes there was a bug introduced in the AUTOGEN_PARALLEL property processing:
// Autogen target parallel processing
{
std::string prop = this->GenTarget->GetSafeProperty("AUTOGEN_PARALLEL");
if (prop.empty() || (prop == "AUTO")) {
// Autodetect number of CPUs
this->AutogenTarget.Parallel = GetParallelCPUCount();
} else {
this->AutogenTarget.Parallel = 1;
}
}
Property is read but then goes nowhere so this->AutogenTarget.Parallel
only accepts "AUTO" as a valid parameter.
Before the change the code was following:
// Autogen target parallel processing
this->AutogenTarget.Parallel =
this->GenTarget->GetSafeProperty("AUTOGEN_PARALLEL");
if (this->AutogenTarget.Parallel.empty() ||
(this->AutogenTarget.Parallel == "AUTO")) {
// Autodetect number of CPUs
this->AutogenTarget.Parallel = std::to_string(GetParallelCPUCount());
}
Edited by Stat1cV01D