MULTIARCH="i386-linux-gnu"
fi
if [ "$SYSTEM" = "Darwin" ]; then
- COMPILER="clang++"
+ if which clang++ >/dev/null; then
+ COMPILER="clang++"
+ else
+ COMPILER="g++"
+ fi
else
COMPILER="g++"
fi
void Builder::add_default_tools()
{
- if(current_arch->get_system()=="darwin")
+ if(current_arch->get_system()=="darwin" && 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));