diff options
author | Geoff Norton <kangaroo@clr.ninja> | 2016-01-23 04:21:50 +0000 |
---|---|---|
committer | Geoff Norton <kangaroo@clr.ninja> | 2016-01-23 04:21:50 +0000 |
commit | 3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45 (patch) | |
tree | bc50c38bf4fb506c356c074d87afdba99e225157 /build.sh | |
parent | 431f7ff1150561a9d27e29c155706e279328446a (diff) | |
download | coreclr-3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45.tar.gz coreclr-3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45.tar.bz2 coreclr-3dacb66f7885dcbdfbdcfd958063d9a0ffe3df45.zip |
[xplat] uname -p reports unknown on some arch -- fall back to uname -m
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -243,6 +243,11 @@ __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # 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) echo "Unsupported CPU $CPUName detected, build might not succeed!" |