diff options
3 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 9b79c9a..b46f69d 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -3394,7 +3394,7 @@ void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs, Twine IncludeSuffix, const ArgList &DriverArgs, ArgStringList &CC1Args) { - if (!llvm::sys::fs::exists(Base)) + if (!llvm::sys::fs::exists(Base + Suffix)) return false; addSystemInclude(DriverArgs, CC1Args, Base + Suffix); diff --git a/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep b/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.2_tree/usr/include/.keep diff --git a/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep b/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/clang/test/Driver/Inputs/gentoo_linux_gcc_4.6.4_tree/usr/include/.keep |