summaryrefslogtreecommitdiff
path: root/test/Driver/cl-pch-search.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-04-12 19:04:37 +0000
committerNico Weber <nicolasweber@gmx.de>2016-04-12 19:04:37 +0000
commitd7c9694b2f47ce19e7a26cd0eec3724555db6eb8 (patch)
tree5d9211d272f2b9bd9384e8cce906983322ee5160 /test/Driver/cl-pch-search.cpp
parentf8354589b3282ae9ea7c5cef229e32b442f61fd5 (diff)
downloadclang-d7c9694b2f47ce19e7a26cd0eec3724555db6eb8.tar.gz
clang-cl: Remove -isystem, add -imsvc.
r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front of the system include search path. The idea was to use this to point to a hermetic msvc install, but as it turns out this doesn't work: -isystem then adds the hermetic headers in front of clang's builtin headers, and clang's headers that are supposed to wrap msvc headers (say, stdarg.h) aren't picked up at all anymore. So revert that, and instead expose -imsvc which works as if the passed directory was part of %INCLUDE%: The header is treated as a system header, but it is searched after clang's lib/Header headers. Fixes half of PRPR26751. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/cl-pch-search.cpp')
-rw-r--r--test/Driver/cl-pch-search.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/Driver/cl-pch-search.cpp b/test/Driver/cl-pch-search.cpp
index fd503f1f80..118cf19efb 100644
--- a/test/Driver/cl-pch-search.cpp
+++ b/test/Driver/cl-pch-search.cpp
@@ -4,7 +4,3 @@
// REQUIRES: x86-registered-target
// Check that pchfile.h next to to pchfile.cc is found correctly.
// RUN: %clang_cl -Werror /Ycpchfile.h /FIpchfile.h /c /Fo%t.obj /Fp%t.pch -- %S/Inputs/pchfile.cpp
-
-// Check that i_group flags other than -include aren't skipped (e.g. -isystem).
-#include "header0.h"
-// RUN: %clang_cl -Werror -isystem%S/Inputs /Yupchfile.h /FIpchfile.h /c /Fo%t.obj /Fp%t.pch -- %s