diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2015-10-27 22:20:26 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2015-10-27 22:20:26 +0000 |
commit | 0c6833315636a1ba3c2d55d2ece258270c458541 (patch) | |
tree | 01e5ed355bfc22958d9b5bd6c674ed9f81f01ccc /unittests/Driver | |
parent | 8d7afec55e93f011a3dc46c8e143dd56038bf197 (diff) | |
download | clang-0c6833315636a1ba3c2d55d2ece258270c458541.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Driver')
-rw-r--r-- | unittests/Driver/ToolChainTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/Driver/ToolChainTest.cpp b/unittests/Driver/ToolChainTest.cpp index 5159e80cc7..ef21e2d17c 100644 --- a/unittests/Driver/ToolChainTest.cpp +++ b/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; { |