X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.cpp;h=92475869235ea98d8139151f83d7145eb31297d5;hb=217889f81407de43d8de469ad93e05b7d334ae0c;hp=94acd45f8099f907f5650f1d1e19428be38a0c07;hpb=cee450d7cc932811b0d119a132bc9981eb480584;p=builder.git diff --git a/source/builder.cpp b/source/builder.cpp index 94acd45..9247586 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -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)); @@ -263,7 +263,7 @@ int Builder::clean(bool all, bool dry_run) while(!queue.empty()) { Target *tgt = queue.front(); - queue.erase(queue.begin()); + queue.pop_front(); if(tgt->is_buildable() && (tgt->get_package()==&package_manager.get_main_package() || all)) clean_tgts.insert(tgt);