Ver Fonte

Fix platform detection for FreeBSD (#47839)

Thefrank há 2 anos atrás
pai
commit
99d3f224a5
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      eng/build.sh

+ 3 - 1
eng/build.sh

@@ -36,6 +36,8 @@ runtime_source_feed_key=''
 
 
 if [ "$(uname)" = "Darwin" ]; then
 if [ "$(uname)" = "Darwin" ]; then
     target_os_name='osx'
     target_os_name='osx'
+elif [ "$(uname)" = "FreeBSD" ]; then
+    target_os_name='freebsd'
 else
 else
     target_os_name='linux'
     target_os_name='linux'
 fi
 fi
@@ -380,4 +382,4 @@ if [ "$only_build_repo_tasks" != true ]; then
     MSBuild $_InitializeToolset -p:RepoRoot="$repo_root" ${msbuild_args[@]+"${msbuild_args[@]}"}
     MSBuild $_InitializeToolset -p:RepoRoot="$repo_root" ${msbuild_args[@]+"${msbuild_args[@]}"}
 fi
 fi
 
 
-ExitWithExitCode 0
+ExitWithExitCode 0