Skip to content

Commit

Permalink
allowing fallback to clang on freebsd when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Huseby committed Jun 24, 2015
1 parent a643092 commit 4de71c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure
Expand Up @@ -861,6 +861,16 @@ then
CFG_DISABLE_JEMALLOC=1
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
# 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" ]
Expand Down

0 comments on commit 4de71c7

Please sign in to comment.