summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Driver/ToolChainTest.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2019-09-28 12:21:06 +0000
committerSerge Pavlov <sepavloff@gmail.com>2019-09-28 12:21:06 +0000
commit4bc0562719920816be1e40507da58c6fd4fd9b51 (patch)
treeadf6a9e116bf3026066f728eac06bcc9d9232b54 /clang/unittests/Driver/ToolChainTest.cpp
parentb1cd91815e03a914724117f9ffbe498abeb05da7 (diff)
downloadbcm5719-llvm-4bc0562719920816be1e40507da58c6fd4fd9b51.tar.gz
bcm5719-llvm-4bc0562719920816be1e40507da58c6fd4fd9b51.zip
Driver tests: set `--sysroot=""` to support clang with `DEFAULT_SYSROOT`
When testing clang that has been compiled with `-DDEFAULT_SYSROOT` set to some path, some tests would fail. Override sysroot to be empty string for the tests to succeed when clang is configured with `DEFAULT_SYSROOT`. Differential Revision: https://reviews.llvm.org/D66834 Patch by Sergej Jaskiewicz <jaskiewiczs@icloud.com>. llvm-svn: 373147
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r--clang/unittests/Driver/ToolChainTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp
index 80938c83f82..f84e508b6cb 100644
--- a/clang/unittests/Driver/ToolChainTest.cpp
+++ b/clang/unittests/Driver/ToolChainTest.cpp
@@ -60,7 +60,7 @@ TEST(ToolChainTest, VFSGCCInstallation) {
llvm::MemoryBuffer::getMemBuffer("\n"));
std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
- {"-fsyntax-only", "--gcc-toolchain=", "foo.cpp"}));
+ {"-fsyntax-only", "--gcc-toolchain=", "--sysroot=", "foo.cpp"}));
EXPECT_TRUE(C);
std::string S;
OpenPOWER on IntegriCloud