From 1fa4c90ca79641402e5a28ecc6736aa815b162a9 Mon Sep 17 00:00:00 2001 From: Manu Date: Thu, 18 Feb 2016 09:22:17 +0900 Subject: Ported fix from CoreCLR regarding uname reporting unknown platform See CoreCLR commit 3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45. --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 2066df2f4..b25d49f94 100755 --- a/build.sh +++ b/build.sh @@ -189,6 +189,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 -- cgit v1.2.3