]> granicus.if.org Git - clang/commitdiff
Add --gcc-toolchain= to one of the libclang unitests to fix issue related to
authorSamuel Antao <sfantao@us.ibm.com>
Mon, 30 Nov 2015 17:26:28 +0000 (17:26 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Mon, 30 Nov 2015 17:26:28 +0000 (17:26 +0000)
the gcc libraries clang picks for when it was configures with a user defined
path.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254306 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/libclang/LibclangTest.cpp

index fc28b172e6d582043333c675a0da58786bf4280b..9eb3fd043f44edf24d9369f7900240716b941c65 100644 (file)
@@ -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,