r254306 - Add --gcc-toolchain= to one of the libclang unitests to fix issue related to

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 30 09:26:28 PST 2015


Author: sfantao
Date: Mon Nov 30 11:26:28 2015
New Revision: 254306

URL: http://llvm.org/viewvc/llvm-project?rev=254306&view=rev
Log:
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.


Modified:
    cfe/trunk/unittests/libclang/LibclangTest.cpp

Modified: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=254306&r1=254305&r2=254306&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (original)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Mon Nov 30 11:26:28 2015
@@ -482,7 +482,8 @@ TEST_F(LibclangReparseTest, clang_parseT
   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,




More information about the cfe-commits mailing list