]> git.tdb.fi Git - builder.git/blobdiff - source/builder.cpp
Older versions of OS X don't have clang
[builder.git] / source / builder.cpp
index 3776e36ef169dc09db238d2630a16f051cc17de5..92475869235ea98d8139151f83d7145eb31297d5 100644 (file)
@@ -77,7 +77,7 @@ void Builder::set_temp_directory(const FS::Path &p)
 
 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));