Skip to content
Snippets Groups Projects
Commit c12d3d35 authored by Ben Langmuir's avatar Ben Langmuir
Browse files

Use temporary module cache in test

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212467 91177308-0d34-0410-b5e6-96231b3b80d8
parent dab00ab1
No related branches found
No related tags found
No related merge requests found
...@@ -434,7 +434,9 @@ TEST_F(LibclangReparseTest, ReparseWithModule) { ...@@ -434,7 +434,9 @@ TEST_F(LibclangReparseTest, ReparseWithModule) {
WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom); WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom);
WriteFile(ModName, ModFile); WriteFile(ModName, ModFile);
const char *Args[] = { "-fmodules", "-I", TestDir.c_str() }; std::string ModulesCache = std::string("-fmodules-cache-path=") + TestDir;
const char *Args[] = { "-fmodules", ModulesCache.c_str(),
"-I", TestDir.c_str() };
int NumArgs = sizeof(Args) / sizeof(Args[0]); int NumArgs = sizeof(Args) / sizeof(Args[0]);
ClangTU = clang_parseTranslationUnit(Index, MName.c_str(), Args, NumArgs, ClangTU = clang_parseTranslationUnit(Index, MName.c_str(), Args, NumArgs,
nullptr, 0, TUFlags); nullptr, 0, TUFlags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment