]> granicus.if.org Git - clang/commit
Driver: introduce and use `-isystem-after` for cross-windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 17 Jun 2016 17:23:16 +0000 (17:23 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 17 Jun 2016 17:23:16 +0000 (17:23 +0000)
commitc5e60a09dc912d559a672f959c8a8d79f0dc45a1
treebef6b8e7254dc2460aff1c977132756251d30a78
parent8eae240996ca84c9f24308fa22061ed97cc1a0a9
Driver: introduce and use `-isystem-after` for cross-windows

This mirrors the many other -i*after options to insert a new system search
directory at the end of the search path.  This makes it possible to actually
inject a search path after the resource dir.  This option is similar in spirit
to the /imsvc option in the clang-cl driver.  This is needed to properly use the
driver for Windows targets where the clang headers wrap some of the system
headers.

This concept is actually useful on other targets (e.g. Linux) and would be
really easy to support on the core toolchain.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273016 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/CrossWindowsToolChain.cpp
lib/Driver/Tools.cpp
test/Driver/windows-cross.c