From e5113bce6ce3341615ab50b5b165a4d19ac5eae7 Mon Sep 17 00:00:00 2001 From: Samuel Antao Date: Mon, 30 Nov 2015 17:26:28 +0000 Subject: 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 --- clang/unittests/libclang/LibclangTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/unittests/libclang/LibclangTest.cpp') 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, -- cgit v1.1