From 8fa86b1a44d0ea8a97df66a271dca5cfebdb38c0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 17 Sep 2010 01:16:06 +0000 Subject: 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. llvm-svn: 114146 --- clang/lib/Driver/ToolChains.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Driver/ToolChains.h') diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h index 587bf60de8f..f806e9f2157 100644 --- a/clang/lib/Driver/ToolChains.h +++ b/clang/lib/Driver/ToolChains.h @@ -223,6 +223,9 @@ public: virtual void AddLinkRuntimeLibArgs(const ArgList &Args, ArgStringList &CmdArgs) const; + virtual void AddClangCXXStdlibLibArgs(const ArgList &Args, + ArgStringList &CmdArgs) const; + /// } }; -- cgit v1.2.3