Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver passes down -stdlib for Darwin #29896

Open
hahnjo opened this issue Sep 28, 2016 · 1 comment
Open

Driver passes down -stdlib for Darwin #29896

hahnjo opened this issue Sep 28, 2016 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

Comments

@hahnjo
Copy link
Member

hahnjo commented Sep 28, 2016

Bugzilla Link 30548
Version unspecified
OS All
CC @nico

Extended Description

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.

@nico
Copy link
Contributor

nico commented Dec 26, 2018

Related: r348365

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Projects
None yet
Development

No branches or pull requests

2 participants