[cfe-dev] Patch to support -nodefaultlibs flag on Linux targets (fixes llvm bug 11172)

Andrew C. Morrow andrew.c.morrow at gmail.com
Mon May 14 10:47:00 PDT 2012


Hi,

I was experimenting with getting libc++abi and libc++ working on
Linux, and I noticed that mainline clang doesn't honor the
-nodefaultlibs flag on that platform. There is an open bug for this
issue: http://llvm.org/bugs/show_bug.cgi?id=11172. I've attached a
patch to tools/Driver.cpp that is my best guess at a fix, based on how
-nodefaultlibs is handled for other platforms in that file. The patch
also adds a new test for the feature, derived from the -nostdlib flag
test.

Thanks,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux.nodefaultlibs.patch
Type: application/octet-stream
Size: 2287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120514/c11dd925/attachment.obj>


More information about the cfe-dev mailing list