diff options
author | Manu <manu-silicon@users.noreply.github.com> | 2016-02-18 03:22:17 +0300 |
---|---|---|
committer | Manu <manu-silicon@users.noreply.github.com> | 2016-02-18 03:22:17 +0300 |
commit | 1fa4c90ca79641402e5a28ecc6736aa815b162a9 (patch) | |
tree | a45fc593c291d8d9b41ae006af1e11b2b5bea267 | |
parent | 1ed6c3769bb1a712d9ff71463435cecf1b9b77af (diff) |
Ported fix from CoreCLR regarding uname reporting unknown platform
See CoreCLR commit 3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45.
-rwxr-xr-x | build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |