LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 30548 - Driver passes down -stdlib for Darwin
Summary: Driver passes down -stdlib for Darwin
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: Driver (show other bugs)
Version: unspecified
Hardware: All All
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 01:22 PDT by Jonas Hahnfeld
Modified: 2018-12-26 09:02 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Hahnfeld 2016-09-28 01:22:21 PDT
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.
Comment 1 Nico Weber 2018-12-26 09:02:06 PST
Related: r348365