mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Avoid calling compilerProps after compiler object construction (#3005)
This commit is contained in:
@@ -34,6 +34,8 @@ export class PythonCompiler extends BaseCompiler {
|
||||
super(compilerInfo, env);
|
||||
this.compiler.demangler = null;
|
||||
this.demanglerClass = null;
|
||||
this.disasmScriptPath =
|
||||
this.compilerProps('disasmScript') || resolvePathFromAppRoot('etc', 'scripts', 'dis_all.py');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
@@ -66,15 +68,9 @@ export class PythonCompiler extends BaseCompiler {
|
||||
return {asm: bytecodeResult};
|
||||
}
|
||||
|
||||
getDisasmScriptPath() {
|
||||
const script = this.compilerProps('disasmScript');
|
||||
|
||||
return script || resolvePathFromAppRoot('etc', 'scripts', 'dis_all.py');
|
||||
}
|
||||
|
||||
optionsForFilter(filters, outputFilename) {
|
||||
return ['-I',
|
||||
this.getDisasmScriptPath(),
|
||||
this.disasmScriptPath,
|
||||
'--outputfile',
|
||||
outputFilename,
|
||||
'--inputfile'];
|
||||
|
||||
Reference in New Issue
Block a user