From: Yuka Takahashi Date: Wed, 3 May 2017 06:02:45 +0000 (+0000) Subject: Revert rL301998: "Fix a bug that -isysroot is completely ignored on Unix" X-Git-Tag: llvmorg-5.0.0-rc1~6102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5511fc2eb3cb74b309a13e060bf487e592eae93f;p=platform%2Fupstream%2Fllvm.git Revert rL301998: "Fix a bug that -isysroot is completely ignored on Unix" This reverts commit because it broke sanitizer-x86_64-linux-autoconf bot and clang-ppc64be-linux-multistage bot. llvm-svn: 302000 --- diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index c69a7e6..d3ebf48 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1565,7 +1565,7 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args, frontend::IncludeDirGroup Group = frontend::System; if (A->getOption().matches(OPT_internal_externc_isystem)) Group = frontend::ExternCSystem; - Opts.AddPath(A->getValue(), Group, false, false); + Opts.AddPath(A->getValue(), Group, false, true); } // Add the path prefixes which are implicitly treated as being system headers. diff --git a/clang/test/Driver/sysroot-flags.c b/clang/test/Driver/sysroot-flags.c index 8149275..b0a10bf 100644 --- a/clang/test/Driver/sysroot-flags.c +++ b/clang/test/Driver/sysroot-flags.c @@ -26,7 +26,3 @@ // RUN: FileCheck %s -check-prefix=SYSROOT_SEPARATE // SYSROOT_SEPARATE: "-isysroot" "{{[^"]*}}/foo/bar" // SYSROOT_SEPARATE: "--sysroot{{" "|=}}{{[^"]*}}/foo/bar" - -// Check that -isysroot is handled properly -// RUN: %clang -isysroot /foo/bar -c %s -v 2>&1 | \ -// RUN: grep "/foo/bar"