diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-06-21 21:12:29 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-06-21 21:12:29 +0000 |
commit | b02ea3d70d83cf549059957775272334c5a4f60c (patch) | |
tree | af23f00c3da912135ac0eac473c3385ee8faa24d /clang/lib/Driver/Tools.cpp | |
parent | 5464de6d90a4088153ceae53d86233fa12ff225d (diff) | |
download | bcm5719-llvm-b02ea3d70d83cf549059957775272334c5a4f60c.tar.gz bcm5719-llvm-b02ea3d70d83cf549059957775272334c5a4f60c.zip |
Fix the default libc++ header search path to be sysrooted. Radar 9639692.
The -cxx-isystem path is not prefixed with the sysroot directory, so it's
not a good way for the driver to set the system default C++ search path.
Instead, add -stdlib as a cc1 option and teach the frontend how to find the
headers. The driver can then just pass -stdlib through to "cc1".
llvm-svn: 133547
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 41efccfb93a..40ad2caabbd 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -330,6 +330,7 @@ void Clang::AddPreprocessingOptions(const Driver &D, = types::isObjC(InputType) && isObjCAutoRefCount(Args); getToolChain().AddClangCXXStdlibIncludeArgs(Args, CmdArgs, ObjCXXAutoRefCount); + Args.AddAllArgs(CmdArgs, options::OPT_stdlib_EQ); } // Add -Wp, and -Xassembler if using the preprocessor. |