Platform detection: Use freebsd-g++ on systems < 10, otherwise -clang
FreeBSD uses gcc as the default compiler until FreeBSD 10 where it was switched to clang for the whole system. Choose freebsd-clang for any system release > 10, otherwise choose freebsd-g++ by default. Change-Id: I2bf38aa027453c25ed2a29d587c2962ded5fcd4a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
c85f988fc7
commit
614e86f564
15
configure
vendored
15
configure
vendored
@ -2859,10 +2859,17 @@ if [ -z "$PLATFORM" ]; then
|
||||
PLATFORM=ultrix-g++
|
||||
;;
|
||||
FreeBSD:*)
|
||||
PLATFORM=freebsd-clang
|
||||
PLATFORM_NOTES="
|
||||
- Also available for FreeBSD: freebsd-g++
|
||||
"
|
||||
if [ "$(uname -r | cut -d. -f1)" -ge 10 ]; then
|
||||
PLATFORM=freebsd-clang
|
||||
PLATFORM_NOTES="
|
||||
- Also available for FreeBSD: freebsd-g++
|
||||
"
|
||||
else
|
||||
PLATFORM=freebsd-g++
|
||||
PLATFORM_NOTES="
|
||||
- Also available for FreeBSD: freebsd-clang
|
||||
"
|
||||
fi
|
||||
;;
|
||||
OpenBSD:*)
|
||||
PLATFORM=openbsd-g++
|
||||
|
Loading…
x
Reference in New Issue
Block a user