mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 04:08:04 -06:00
fix interpreting with multiple files (#4407)
This commit is contained in:
@@ -1562,8 +1562,17 @@ export class BaseCompiler implements ICompiler {
|
||||
const source = key.source;
|
||||
const dirPath = await this.newTempDir();
|
||||
const outputFilename = this.getExecutableFilename(dirPath, this.outputFilebase);
|
||||
|
||||
// cant use this.writeAllFiles here because outputFilename is used as the file to execute
|
||||
// instead of inputFilename
|
||||
|
||||
await fs.writeFile(outputFilename, source);
|
||||
if (key.files && key.files.length > 0) {
|
||||
await this.writeMultipleFiles(key.files, dirPath);
|
||||
}
|
||||
|
||||
executeParameters.args.unshift(outputFilename);
|
||||
|
||||
const result = await this.runExecutable(this.compiler.exe, executeParameters, dirPath);
|
||||
return {
|
||||
...result,
|
||||
|
||||
Reference in New Issue
Block a user