[mono.proj] use all available cores for runtime build (#32566)
authorBernhard Urban-Forster <lewurm@gmail.com>
Thu, 20 Feb 2020 01:35:46 +0000 (02:35 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 01:35:46 +0000 (01:35 +0000)
* [mono.proj] use all available cores for runtime build

* Update src/mono/mono.proj

Co-Authored-By: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/mono/mono.proj

index 14cdecb..e089c2d 100644 (file)
@@ -65,7 +65,7 @@
   </Target>
 
   <Target Name="BuildMonoRuntimeUnix" Condition="'$(OS)' != 'Windows_NT'" DependsOnTargets="ConfigureMonoRuntimeUnix">
-    <Exec Command="make -j8" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoObjDir)" />
+    <Exec Command="make -j$([System.Environment]::ProcessorCount)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoObjDir)" />
   </Target>
 
   <!-- Windows Mono runtime build -->