summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Driver/ToolChainTest.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2015-10-27 22:20:26 +0000
committerSamuel Antao <sfantao@us.ibm.com>2015-10-27 22:20:26 +0000
commit4c1f1c33b16b3b7236444661a6bd48933cf7c2dd (patch)
tree716495043e05f972a7942e8e8099dfc3704b188a /clang/unittests/Driver/ToolChainTest.cpp
parent9fde8d602706a73beb11260d51dfd95dd7321fce (diff)
downloadbcm5719-llvm-4c1f1c33b16b3b7236444661a6bd48933cf7c2dd.tar.gz
bcm5719-llvm-4c1f1c33b16b3b7236444661a6bd48933cf7c2dd.zip
Minor fix in ToolChainTest.cpp to allow user defined GCC toolchain.
If the user configured clang with a custom GCC toolchain that will take precedence on what the ToolChainTest.cpp expects to evaluate. This is fixed here by passing --gcc-toolchain= to the driver, in order to override any user defined GCC toolchain. llvm-svn: 251459
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r--clang/unittests/Driver/ToolChainTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp
index 5159e80cc7a..ef21e2d17c6 100644
--- a/clang/unittests/Driver/ToolChainTest.cpp
+++ b/clang/unittests/Driver/ToolChainTest.cpp
@@ -58,8 +58,8 @@ TEST(ToolChainTest, VFSGCCInstallation) {
InMemoryFileSystem->addFile(Path, 0,
llvm::MemoryBuffer::getMemBuffer("\n"));
- std::unique_ptr<Compilation> C(
- TheDriver.BuildCompilation({"-fsyntax-only", "foo.cpp"}));
+ std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
+ {"-fsyntax-only", "--gcc-toolchain=", "foo.cpp"}));
std::string S;
{
@@ -97,8 +97,8 @@ TEST(ToolChainTest, VFSGCCInstallationRelativeDir) {
InMemoryFileSystem->addFile(Path, 0,
llvm::MemoryBuffer::getMemBuffer("\n"));
- std::unique_ptr<Compilation> C(
- TheDriver.BuildCompilation({"-fsyntax-only", "foo.cpp"}));
+ std::unique_ptr<Compilation> C(TheDriver.BuildCompilation(
+ {"-fsyntax-only", "--gcc-toolchain=", "foo.cpp"}));
std::string S;
{
OpenPOWER on IntegriCloud