Commit Graph

3 Commits

Author SHA1 Message Date
Nico Weber 0a78726ddd Fix sysroot-prefix.c on Windows (/ vs \).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268797 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 21:17:32 +00:00
Saleem Abdulrasool 013b98557b test: attempt to repair windows build
Replace use of /dev/null with /var/empty.  lit will substitute the /dev/null
include path resulting in failures.  Use a path under /var/empty which is
supposed to be empty to ensure that we can successfully test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268784 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 19:39:00 +00:00
Saleem Abdulrasool 0f9d5d9db3 Frontend: support -I=path for sysroot expansion
From the GCC manpage:

  -I dir
    ... If dir begins with =, then the = will be replaced by the sysroot prefix;
    see --sysroot and -isysroot.

Add support to expand the `=` as a prefix of the include path with the sysroot
if specified.  `-isysroot` takes precedence over `--sysroot` as the normal
argument behaviour occurs.  The ordering of the `-isysroot` is relevant to the
path substituted.  If no `--sysroot=` or `-isysroot` option is present, the = is
not expanded.

Resolves PR26965!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268777 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-06 19:13:55 +00:00