else
MULTIARCH="i386-linux-gnu"
fi
-if [ "$SYSTEM" = "Darwin" ]; then
+if [ "$SYSTEM" = "Darwin" -o "$SYSTEM" = "FreeBSD" ]; then
if which clang++ >/dev/null; then
COMPILER="clang++"
else
void Builder::add_default_tools()
{
- if(current_arch->get_system()=="darwin" && vfs.find_binary("clang"))
+ bool use_clang = (current_arch->get_system()=="darwin" || current_arch->get_system()=="freebsd");
+ if(use_clang && vfs.find_binary("clang"))
toolchain.add_toolchain(new ClangTools(*this, *current_arch));
if(current_arch->get_system()=="android")
toolchain.add_toolchain(new AndroidTools(*this, *current_arch));