Przeglądaj źródła

Merge topic 'codelite_make_j_0'

7d6639bf8d CodeLite: Do not pass -j argument with CPU count 0

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4067
Brad King 6 lat temu
rodzic
commit
aa6437e3e0
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      Source/cmExtraCodeLiteGenerator.cxx

+ 4 - 1
Source/cmExtraCodeLiteGenerator.cxx

@@ -635,7 +635,10 @@ std::string cmExtraCodeLiteGenerator::GetBuildCommand(
   if (generator == "NMake Makefiles" || generator == "Ninja") {
     ss << make;
   } else if (generator == "MinGW Makefiles" || generator == "Unix Makefiles") {
-    ss << make << " -f$(ProjectPath)/Makefile -j " << this->CpuCount;
+    ss << make << " -f$(ProjectPath)/Makefile";
+    if (this->CpuCount > 0) {
+      ss << " -j " << this->CpuCount;
+    }
   }
   if (!targetName.empty()) {
     ss << " " << targetName;