Fix csproj
authorEgor Bogatov <egorbo@gmail.com>
Fri, 14 Jun 2019 10:15:02 +0000 (13:15 +0300)
committerMarek Safar <marek.safar@gmail.com>
Fri, 14 Jun 2019 11:16:46 +0000 (13:16 +0200)
Commit migrated from https://github.com/mono/mono/commit/4212270b231bcc158f75fd19a4503eac979032ec

src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj
src/mono/netcore/build.sh

index b734525..e7cf77c 100644 (file)
@@ -28,8 +28,8 @@
 
   <!-- Compilation options -->
   <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">$(BuildType)</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">$(BuildArch)</Platform>
+    <Configuration Condition=" '$(BuildType)' != '' ">$(BuildType)</Configuration>
+    <Platform Condition=" '$(BuildArch)' != '' ">$(BuildArch)</Platform>
     <Platform Condition=" '$(Platform)' == 'armel' ">arm</Platform>
     <ProjectGuid>{DD18B4BA-3B49-437B-9E34-41EF8A640CE0}</ProjectGuid>
 
index 29071f8..712c305 100755 (executable)
@@ -83,6 +83,7 @@ while [[ $# > 0 ]]; do
   shift
 done
 
+CPU_COUNT=$(getconf _NPROCESSORS_ONLN || echo 4)
 
 # run .././autogen.sh only once or if "--rebuild" argument is provided
 if [[ "$force_rebuild" == "true" || ! -f .configured ]]; then
@@ -92,8 +93,6 @@ if [[ "$force_rebuild" == "true" || ! -f .configured ]]; then
   touch .configured
 fi
 
-CPU_COUNT=$(getconf _NPROCESSORS_ONLN || echo 4)
-
 # build mono runtime
 if [ "$skipnative" = "false" ]; then
   make runtime -j$CPU_COUNT