We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cfaec4 commit 8644412Copy full SHA for 8644412
src/xinterpreter.cpp
@@ -44,7 +44,8 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
44
{
45
std::cerr << "Failed to detect the resource-dir\n";
46
}
47
- ClangArgs.push_back("-resource-dir " + resource_dir.c_str());
+ std::string resource_dir_arg = std::string("-resource-dir ") + resource_dir;
48
+ ClangArgs.push_back(resource_dir_arg.c_str());
49
50
std::vector<std::string> CxxSystemIncludes;
51
Cpp::DetectSystemCompilerIncludePaths(CxxSystemIncludes);
0 commit comments