Skip to content

Commit 4de71c7

Browse files
author
Dave Huseby
committed
allowing fallback to clang on freebsd when needed
1 parent a643092 commit 4de71c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,16 @@ then
861861
CFG_DISABLE_JEMALLOC=1
862862
fi
863863

864+
if [ $CFG_OSTYPE = unknown-freebsd ]
865+
then
866+
CFG_FREEBSD_GCC_VERSION=$("CFG_GCC" --version 2>&1)
867+
if [ $? -ne 0 ]
868+
then
869+
step_msg "GCC not installed on FreeBSD, forcing clang"
870+
CFG_ENABLE_CLANG=1
871+
fi
872+
fi
873+
864874
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
865875
# system, so if we find that gcc is clang, we should just use clang directly.
866876
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]

0 commit comments

Comments
 (0)