Skip to content

Commit 8d00731

Browse files
fsfodvgvassilev
authored andcommitted
Work around asserts in Sema::PushDeclContext for Windows by setting -fno-delayed-template-parsing
1 parent 5953058 commit 8d00731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,10 @@ namespace Cpp {
24632463
std::vector<const char *> ClingArgv = {"-resource-dir", ResourceDir.c_str(),
24642464
"-std=c++14"};
24652465
ClingArgv.insert(ClingArgv.begin(), MainExecutableName.c_str());
2466+
#ifdef _WIN32
2467+
// FIXME : Workaround Sema::PushDeclContext assert on windows
2468+
ClingArgv.push_back("-fno-delayed-template-parsing");
2469+
#endif
24662470
ClingArgv.insert(ClingArgv.end(), Args.begin(), Args.end());
24672471
// To keep the Interpreter creation interface between cling and clang-repl
24682472
// to some extent compatible we should put Args and GpuArgs together. On the

0 commit comments

Comments
 (0)