mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 12:57:32 -06:00
Merge pull request #1774 from steveire/fix-clang-query
Use a file to execute clang-query commands
This commit is contained in:
@@ -45,7 +45,10 @@ class ClangQueryTool extends BaseTool {
|
||||
}
|
||||
|
||||
await fs.writeFile(path.join(dir, "compile_flags.txt"), compileFlags.join('\n'));
|
||||
const toolResult = await super.runTool(compilationInfo, sourcefile, args, stdin);
|
||||
await fs.writeFile(path.join(dir, "query_commands.txt"), stdin);
|
||||
args.push('-f');
|
||||
args.push('query_commands.txt');
|
||||
const toolResult = await super.runTool(compilationInfo, sourcefile, args);
|
||||
|
||||
if (toolResult.stdout.length > 0) {
|
||||
const lastLine = toolResult.stdout.length - 1;
|
||||
|
||||
Reference in New Issue
Block a user