Loading main.cpp +18 −0 Changes for main.cpp: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -334,6 +334,24 @@ int main(int argc, char* argv[]) { std::string tok; while (iss >> tok) { if (tok == "--") break; // start of NAME=value overrides // The inherited flags themselves, as GNU make passes them on: the // first word holds the single-letter ones without a dash ("ks"), // long options follow. Kbuild tells its re-invoked sub-make apart // by the inherited --no-print-directory. if (tok == "--no-print-directory") { no_print_directory = true; continue; } if (tok == "--silent" || tok == "--quiet") { silent = true; continue; } if (tok == "--keep-going") { keep_going = true; continue; } if (tok == "--dry-run" || tok == "--just-print") { dry_run = true; continue; } if (tok == "--always-make") { always_make = true; continue; } if (tok[0] != '-' && tok.find('=') == std::string::npos) { for (char c : tok) { if (c == 's') silent = true; else if (c == 'k') keep_going = true; else if (c == 'n') dry_run = true; else if (c == 'B') always_make = true; } continue; } if (tok.rfind("-j", 0) == 0) { if (tok.size() > 2) { int j = std::atoi(tok.c_str() + 2); Loading Loading
main.cpp +18 −0 Changes for main.cpp: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -334,6 +334,24 @@ int main(int argc, char* argv[]) { std::string tok; while (iss >> tok) { if (tok == "--") break; // start of NAME=value overrides // The inherited flags themselves, as GNU make passes them on: the // first word holds the single-letter ones without a dash ("ks"), // long options follow. Kbuild tells its re-invoked sub-make apart // by the inherited --no-print-directory. if (tok == "--no-print-directory") { no_print_directory = true; continue; } if (tok == "--silent" || tok == "--quiet") { silent = true; continue; } if (tok == "--keep-going") { keep_going = true; continue; } if (tok == "--dry-run" || tok == "--just-print") { dry_run = true; continue; } if (tok == "--always-make") { always_make = true; continue; } if (tok[0] != '-' && tok.find('=') == std::string::npos) { for (char c : tok) { if (c == 's') silent = true; else if (c == 'k') keep_going = true; else if (c == 'n') dry_run = true; else if (c == 'B') always_make = true; } continue; } if (tok.rfind("-j", 0) == 0) { if (tok.size() > 2) { int j = std::atoi(tok.c_str() + 2); Loading