diff options
Diffstat (limited to 'src/Native/build-native.sh')
-rwxr-xr-x | src/Native/build-native.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Native/build-native.sh b/src/Native/build-native.sh index dbfb167b45..120c39df16 100755 --- a/src/Native/build-native.sh +++ b/src/Native/build-native.sh @@ -187,6 +187,10 @@ while :; do __ClangMajorVersion=3 __ClangMinorVersion=8 ;; + clang3.9) + __ClangMajorVersion=3 + __ClangMinorVersion=9 + ;; cross) __CrossBuild=1 ;; @@ -218,6 +222,27 @@ while :; do shift done +# Set cross build +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) + if [ $__BuildArch != x86 ]; then + __CrossBuild=1 + echo "Set CrossBuild for $__BuildArch build" + fi + ;; + x86_64) + if [ $__BuildArch != x64 ]; then + __CrossBuild=1 + echo "Set CrossBuild for $__BuildArch build" + fi + ;; +esac + # Set the remaining variables based upon the determined build configuration __IntermediatesDir="$__rootbinpath/obj/$__BuildOS.$__BuildArch.$__BuildType/Native" __BinDir="$__rootbinpath/$__BuildOS.$__BuildArch.$__BuildType/Native" |