OSDN Git Service

[tests][Driver] Set `--sysroot=""` to allow `DEFAULT_SYSROOT` build
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 15 May 2020 21:09:08 +0000 (17:09 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 15 May 2020 21:34:00 +0000 (17:34 -0400)
commit15f0f824b36ea06fcb17bc56ecd181520b4bfbcf
treef610a8f7aebd344a4ba1da5075b2b8a8e61f65d8
parent1cff8e8de79f0308536fd78c81055c4452eb5c28
[tests][Driver] Set `--sysroot=""` to allow `DEFAULT_SYSROOT` build

Summary:
If `DEFAULT_SYSROOT` is configured to some path, some tests would fail.
This patch overrides `sysroot` to be the empty string in the style of
D66834 so that the tests will pass even when the build is configured
with a `DEFAULT_SYSROOT`.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D79694
clang/test/Driver/darwin-header-search-libcxx.cpp
clang/test/Driver/darwin-header-search-system.cpp
clang/test/Driver/mingw-sysroot.cpp