diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-12-01 19:42:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-12-01 19:42:07 +0000 |
commit | e69c8711902e243bf1271bb114b24de5c66f8828 (patch) | |
tree | 8646ecdbbe328f566190be505cacb70be77e0590 /unittests/libclang | |
parent | 7ac6ada6033761ebc3c26561fa50d0fdaa47474a (diff) |
Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number.
The host libstdc++ may be horribly broken and we want the fake one to be
picked up. This workaround is lame but I don't see a better way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/libclang')
-rw-r--r-- | unittests/libclang/LibclangTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unittests/libclang/LibclangTest.cpp b/unittests/libclang/LibclangTest.cpp index 9eb3fd043f..e190dec89a 100644 --- a/unittests/libclang/LibclangTest.cpp +++ b/unittests/libclang/LibclangTest.cpp @@ -469,9 +469,11 @@ TEST_F(LibclangReparseTest, ReparseWithModule) { } TEST_F(LibclangReparseTest, clang_parseTranslationUnit2FullArgv) { - std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o", + // Provide a fake GCC 99.9.9 standard library that always overrides any local + // GCC installation. + std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/99.9.9/crtbegin.o", "include/arm-linux-gnueabi/.keep", - "include/c++/4.6.1/vector"}; + "include/c++/99.9.9/vector"}; for (auto &Name : EmptyFiles) WriteFile(Name, "\n"); |