From 34c87211f9f1059a90ecf0ad1323d38335e8b19a Mon Sep 17 00:00:00 2001 From: Samuel Antao Date: Mon, 30 Nov 2015 17:26:28 +0000 Subject: [PATCH] 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 --- unittests/libclang/LibclangTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.40.0