]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
Initial support for building on Darwin (a.k.a. Mac OS X)
[builder.git] / source / gnucompiler.cpp
index cd7391f0277175578a22536e1bd3d5bb7a122368..da579ba5d0c132caf0b7c09d17e87bd3281e762e 100644 (file)
@@ -115,7 +115,7 @@ Task *GnuCompiler::run(const Target &target) const
                else
                        argv.push_back(format("-O%d", binfo.optimize));
        }
-       if(binfo.threads && architecture->get_system()!="windows")
+       if(binfo.threads && architecture->get_system()!="windows" && architecture->get_system()!="darwin")
                argv.push_back("-pthread");
        if((comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE) && architecture->get_system()!="windows")
                argv.push_back("-fPIC");