diff options
| author | James Y Knight <jyknight@google.com> | 2019-05-22 20:39:51 +0000 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2019-05-22 20:39:51 +0000 |
| commit | b2ece169ed609b9111c290254d831101d21cbf8f (patch) | |
| tree | 823071454efcb255f7f87d11641e98717c4d45fa /clang/lib/Driver/ToolChains/Darwin.h | |
| parent | 275a55cb5a622491269bf89ba717d73766acaac6 (diff) | |
| download | bcm5719-llvm-b2ece169ed609b9111c290254d831101d21cbf8f.tar.gz bcm5719-llvm-b2ece169ed609b9111c290254d831101d21cbf8f.zip | |
Add back --sysroot support for darwin header search.
Before e97b5f5cf37e ([clang][Darwin] Refactor header search path logic
into the driver), both --sysroot and -isysroot worked to specify where
to look for system and C++ headers on Darwin. However, that change
caused clang to start ignoring --sysroot.
This fixes the regression, and adds tests.
(I also note that on all other platforms, clang seems to almost
completely ignore -isysroot, but that's another issue...)
Differential Revision: https://reviews.llvm.org/D62268
llvm-svn: 361429
Diffstat (limited to 'clang/lib/Driver/ToolChains/Darwin.h')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Darwin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.h b/clang/lib/Driver/ToolChains/Darwin.h index 610f338ebc3..2dc7c85880f 100644 --- a/clang/lib/Driver/ToolChains/Darwin.h +++ b/clang/lib/Driver/ToolChains/Darwin.h @@ -539,6 +539,8 @@ private: llvm::StringRef Version, llvm::StringRef ArchDir, llvm::StringRef BitDir) const; + + llvm::StringRef GetHeaderSysroot(const llvm::opt::ArgList &DriverArgs) const; }; } // end namespace toolchains |

