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:
authorManu <manu-silicon@users.noreply.github.com>2016-02-18 03:22:17 +0300
committerManu <manu-silicon@users.noreply.github.com>2016-02-18 03:22:17 +0300
commit1fa4c90ca79641402e5a28ecc6736aa815b162a9 (patch)
treea45fc593c291d8d9b41ae006af1e11b2b5bea267 /build.sh
parent1ed6c3769bb1a712d9ff71463435cecf1b9b77af (diff)
Ported fix from CoreCLR regarding uname reporting unknown platform
See CoreCLR commit 3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45.
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 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