Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-02-18 03:42:22 +0300
committerJan Kotas <jkotas@microsoft.com>2016-02-18 03:42:22 +0300
commit0f2eacd504c4aea2d62934c702082e646a7b7e19 (patch)
tree0d09e7bc00280234970094fad92da0c30b56c8a3 /build.sh
parent7146caf6a1becf6dbac0a2b5d659b98480222bdb (diff)
parent1fa4c90ca79641402e5a28ecc6736aa815b162a9 (diff)
Merge pull request #877 from manu-silicon/uname
Ported fix from CoreCLR regarding uname reporting unknown platform
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index e4ba2347e..1ba384a72 100755
--- a/build.sh
+++ b/build.sh
@@ -263,6 +263,11 @@ export MONO_THREADS_PER_CPU=2000
# Use uname to determine what the CPU is.
CPUName=$(uname -p)
+# Some Linux platforms report unknown for platform, but the arch for machine.
+if [ $CPUName == "unknown" ]; then
+ CPUName=$(uname -m)
+fi
+
case $CPUName in
i686)
__BuildArch=x86