aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2015-11-30 17:26:28 +0000
committerSamuel Antao <sfantao@us.ibm.com>2015-11-30 17:26:28 +0000
commite5113bce6ce3341615ab50b5b165a4d19ac5eae7 (patch)
treec5a637b881430f933cbdd2ada808a42cb71aa9c4 /clang/unittests/libclang/LibclangTest.cpp
parentef9ca5db16970b8cbedae7cc9ef2e34dbe2b28c2 (diff)
downloadllvm-e5113bce6ce3341615ab50b5b165a4d19ac5eae7.zip
llvm-e5113bce6ce3341615ab50b5b165a4d19ac5eae7.tar.gz
llvm-e5113bce6ce3341615ab50b5b165a4d19ac5eae7.tar.bz2
Add --gcc-toolchain= to one of the libclang unitests to fix issue related to
the gcc libraries clang picks for when it was configures with a user defined path. llvm-svn: 254306
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
-rw-r--r--clang/unittests/libclang/LibclangTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp
index fc28b17..9eb3fd0 100644
--- a/clang/unittests/libclang/LibclangTest.cpp
+++ b/clang/unittests/libclang/LibclangTest.cpp
@@ -482,7 +482,8 @@ TEST_F(LibclangReparseTest, clang_parseTranslationUnit2FullArgv) {
std::string Clang = "bin/clang";
WriteFile(Clang, "");
- const char *Argv[] = {Clang.c_str(), "-target", "arm-linux-gnueabi"};
+ const char *Argv[] = {Clang.c_str(), "-target", "arm-linux-gnueabi",
+ "--gcc-toolchain="};
EXPECT_EQ(CXError_Success,
clang_parseTranslationUnit2FullArgv(Index, Filename.c_str(), Argv,