[llvm-bugs] [Bug 30548] New: Driver passes down -stdlib for Darwin

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 27 23:22:21 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30548

            Bug ID: 30548
           Summary: Driver passes down -stdlib for Darwin
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hahnjo at hahnjo.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Currently, Darwin constructs the header search paths in cc1. For this to work,
it needs information about the C++ STL. This is solved by passing down the
-stdlib argument to cc1.

ToolChain::AddClangCXXStdlibIncludeArgs states that this solution is legacy.
Instead, Darwin::AddClangCXXStdlibIncludeArgs should be implemented, maybe
similar to Linux::AddClangCXXStdlibIncludeArgs.

This also introduces problems with the test Driver/darwin-stdlib.cpp which
fails if CLANG_DEFAULT_CXX_STDLIB and will therefore shortly be XFAILed in that
case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160928/4a95c080/attachment.html>


More information about the llvm-bugs mailing list