Permalink
Browse files

note that -l doesn't work on windows

Filed issue #386 about it too.
  • Loading branch information...
1 parent 48bd2f2 commit 0f56b0e5ebe20eccefe064875d15acb3b9378e2a @evmar evmar committed Jul 28, 2012
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/ninja.cc
  2. +1 −0 src/util.cc
View
3 src/ninja.cc
@@ -91,6 +91,9 @@ void Usage(const BuildConfig& config) {
"\n"
" -j N run N jobs in parallel [default=%d]\n"
" -l N do not start new jobs if the load average is greater than N\n"
+#ifdef _WIN32
+" (not yet implemented on Windows)\n"
+#endif
" -k N keep going until N jobs fail [default=1]\n"
" -n dry run (don't run commands but pretend they succeeded)\n"
" -v show all command lines while building\n"
View
1 src/util.cc
@@ -286,6 +286,7 @@ string StripAnsiEscapeCodes(const string& in) {
#ifdef _WIN32
double GetLoadAverage() {
// TODO(nicolas.despres@gmail.com): Find a way to implement it on Windows.
+ // Remember to also update Usage() when this is fixed.
return -0.0f;
}
#else

0 comments on commit 0f56b0e

Please sign in to comment.