1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 06:50:27 +00:00

change default behavior to multi-tasking

This commit is contained in:
still-flow 2020-05-28 15:28:50 +03:00 committed by GitHub
parent 9ef8b28129
commit dcf81ee468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ string compiler;
string linker; string linker;
string libs; string libs;
int batch_size = 1; int batch_size = thread::hardware_concurrency() + 1;
void set_linux() { void set_linux() {
preprocessor = "g++ -E"; preprocessor = "g++ -E";
@ -134,9 +134,7 @@ int main(int argc, char **argv) {
else if(s.substr(0, 2) == "-l") else if(s.substr(0, 2) == "-l")
linker += " " + s; linker += " " + s;
else if(s.substr(0, 2) == "-j") else if(s.substr(0, 2) == "-j")
if (s.length() == 2 || stoi(s.substr(2)) < 1) batch_size = stoi(s.substr(2));
batch_size = thread::hardware_concurrency() + 1;
else batch_size = stoi(s.substr(2));
else if(s == "-I") { else if(s == "-I") {
opts += " " + s + " " + argv[i+1]; opts += " " + s + " " + argv[i+1];
i++; i++;