From: Samuel Antao Date: Mon, 30 Nov 2015 17:26:28 +0000 (+0000) Subject: Add --gcc-toolchain= to one of the libclang unitests to fix issue related to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34c87211f9f1059a90ecf0ad1323d38335e8b19a;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254306 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/libclang/LibclangTest.cpp b/unittests/libclang/LibclangTest.cpp index fc28b172e6..9eb3fd043f 100644 --- a/unittests/libclang/LibclangTest.cpp +++ b/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,