X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.cpp;h=e453a84eb73e178c4633799a59afc34810568933;hb=69cd5cc73f466181420711fb907979de58687a4c;hp=3776e36ef169dc09db238d2630a16f051cc17de5;hpb=aeb23448b5035f4ceb662c487913618d0efff888;p=builder.git diff --git a/source/builder.cpp b/source/builder.cpp index 3776e36..e453a84 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -77,7 +77,8 @@ void Builder::set_temp_directory(const FS::Path &p) void Builder::add_default_tools() { - if(current_arch->get_system()=="darwin") + 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));