]> granicus.if.org Git - clang/commit
Driver/DarwinClang: The new toolchain definition is going to drop the -L inside
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 01:16:06 +0000 (01:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 01:16:06 +0000 (01:16 +0000)
commitefe91ea6bb6f45aaf663a43a1960998bc1eb9378
tree2b124b6cf934ba5dd60b51eab8bc632b49288be0
parent3019c444c672938c57f5573840071ecd73425ee7
Driver/DarwinClang: The new toolchain definition is going to drop the -L inside
the GCC dir. Unfortunately, this breaks -lstdc++ on SnowLeopard, etc. because
the libstdc++ dylib was hiding there. Workaround this by providing the path to
the right -lstdc++.6 (the only version used in recent memory) if we can't see an
obvious -lstdc++, but can find = -lstdc++.6.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114146 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h