Skip to content

Commit 8644412

Browse files
committed
fix CI
1 parent 9cfaec4 commit 8644412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xinterpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
4444
{
4545
std::cerr << "Failed to detect the resource-dir\n";
4646
}
47-
ClangArgs.push_back("-resource-dir " + resource_dir.c_str());
47+
std::string resource_dir_arg = std::string("-resource-dir ") + resource_dir;
48+
ClangArgs.push_back(resource_dir_arg.c_str());
4849
}
4950
std::vector<std::string> CxxSystemIncludes;
5051
Cpp::DetectSystemCompilerIncludePaths(CxxSystemIncludes);

0 commit comments

Comments
 (0)