allowing fallback to clang on freebsd when needed
This commit is contained in:
parent
a6430925b4
commit
4de71c7ef6
1 changed files with 10 additions and 0 deletions
10
configure
vendored
10
configure
vendored
|
@ -861,6 +861,16 @@ then
|
||||||
CFG_DISABLE_JEMALLOC=1
|
CFG_DISABLE_JEMALLOC=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $CFG_OSTYPE = unknown-freebsd ]
|
||||||
|
then
|
||||||
|
CFG_FREEBSD_GCC_VERSION=$("CFG_GCC" --version 2>&1)
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
step_msg "GCC not installed on FreeBSD, forcing clang"
|
||||||
|
CFG_ENABLE_CLANG=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
|
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
|
||||||
# system, so if we find that gcc is clang, we should just use clang directly.
|
# system, so if we find that gcc is clang, we should just use clang directly.
|
||||||
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
|
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue