mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 10:27:32 -06:00
restore some things
This commit is contained in:
@@ -74,7 +74,7 @@ class PVSStudioTool extends BaseTool {
|
||||
args = [];
|
||||
|
||||
// Necessary arguments
|
||||
//args.push("analyze");
|
||||
args.push("analyze");
|
||||
args.push("--source-file", inputFilepath);
|
||||
const outputFilePath = path.join(sourceDir, "pvs-studio-log.log");
|
||||
args.push("--output-file", outputFilePath);
|
||||
@@ -92,13 +92,11 @@ class PVSStudioTool extends BaseTool {
|
||||
args.push("--cl-params");
|
||||
args = args.concat(compileFlags);
|
||||
|
||||
args.push(inputFilepath);
|
||||
|
||||
await cfgfile;
|
||||
|
||||
// If you are to modify this code,
|
||||
// don't forget that super.runTool() does args.push(inputFilepath) inside.
|
||||
const result = await super.runTool(compilationInfo, false, args);
|
||||
const result = await super.runTool(compilationInfo, inputFilepath, args);
|
||||
if (result.code !== 0) {
|
||||
return result;
|
||||
}
|
||||
@@ -112,6 +110,7 @@ class PVSStudioTool extends BaseTool {
|
||||
"pvs-studio-log.log");
|
||||
|
||||
const plogExecOptions = this.getDefaultExecOptions();
|
||||
plogExecOptions.customCwd = sourceDir;
|
||||
|
||||
const plogConverterResult = await exec.execute(
|
||||
this.plogConverterPath, plogConverterArgs, plogExecOptions);
|
||||
|
||||
Reference in New Issue
Block a user