Use Clang by default on Mac OS 10.8 and above.
Change-Id: Ieaf65a86f2a0ccc5dac007030ea345ce6ccc7185 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
parent
a9cda51517
commit
c30d2c37b0
14
configure
vendored
14
configure
vendored
@ -2185,19 +2185,19 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
case "$UNAME_SYSTEM:$UNAME_RELEASE" in
|
case "$UNAME_SYSTEM:$UNAME_RELEASE" in
|
||||||
Darwin:*)
|
Darwin:*)
|
||||||
OSX_VERSION=`uname -r | cut -d. -f1`
|
OSX_VERSION=`uname -r | cut -d. -f1`
|
||||||
if [ "$OSX_VERSION" -ge 11 ]; then
|
# Select compiler. Use g++ unless we find a usable Clang version
|
||||||
# We're on Lion or above. Check if we have a supported Clang version
|
PLATFORM=macx-g++
|
||||||
|
if [ "$OSX_VERSION" -ge 12 ]; then
|
||||||
|
# We're on Mountain Lion or above. Use Clang. Don't advertise gcc.
|
||||||
|
PLATFORM=macx-clang
|
||||||
|
elif [ "$OSX_VERSION" -eq 11 ]; then
|
||||||
|
# We're on Lion. Check if we have a supported Clang version
|
||||||
case "$(clang -v 2>&1 | grep -Po '(?<=version )\d[\d.]+')" in
|
case "$(clang -v 2>&1 | grep -Po '(?<=version )\d[\d.]+')" in
|
||||||
3.*)
|
3.*)
|
||||||
PLATFORM=macx-clang
|
PLATFORM=macx-clang
|
||||||
PLATFORM_NOTES="\n - Also available for Mac OS X: macx-g++\n"
|
PLATFORM_NOTES="\n - Also available for Mac OS X: macx-g++\n"
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
PLATFORM=macx-g++
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
else
|
|
||||||
PLATFORM=macx-g++
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
AIX:*)
|
AIX:*)
|
||||||
|
Loading…
Reference in New Issue
Block a user