fixes to build properly on FreeBSD (dotnet/coreclr#20588)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Fri, 26 Oct 2018 16:37:37 +0000 (09:37 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 26 Oct 2018 16:37:37 +0000 (09:37 -0700)
* fixes to build properly on FreeBSD

* remove ulimit from freebsd branch

Commit migrated from https://github.com/dotnet/coreclr/commit/e1f7ce16a4a8626054bdeb299f922b7f8b192c22

src/coreclr/build.sh
src/coreclr/init-tools.sh

index 31994c9..459e527 100755 (executable)
@@ -421,6 +421,8 @@ isMSBuildOnNETCoreSupported()
             done
         elif [ "$__HostOS" == "OSX" ]; then
             __isMSBuildOnNETCoreSupported=1
+        elif [ "$__HostOS" == "FreeBSD" ]; then
+            __isMSBuildOnNETCoreSupported=1
         fi
     fi
 }
@@ -1062,7 +1064,7 @@ fi
 
 build_CoreLib
 
-if [ $__CrossgenOnly ==1 ]; then
+if [ $__CrossgenOnly == 1 ]; then
     build_CoreLib_ni "$__BinDir/crossgen"
 fi
 
index f62ccb8..c13bb98 100755 (executable)
@@ -96,7 +96,10 @@ if [ ! -e "$__DOTNET_PATH" ]; then
                     exit 1
                 fi
                 ;;
-
+            FreeBSD)
+                __PKG_RID=freebsd
+                OS=FreeBSD
+                ;;
             Linux)
                 __PKG_RID=linux
                 OS=Linux