aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/clang.ts2
-rw-r--r--lib/compilers/java.ts1
-rw-r--r--lib/compilers/pascal-win.ts2
-rw-r--r--lib/compilers/ptxas.ts2
-rw-r--r--lib/compilers/turboc.ts4
-rw-r--r--lib/compilers/z88dk.ts2
6 files changed, 7 insertions, 6 deletions
diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts
index 9932b52e6..20cfc0d4e 100644
--- a/lib/compilers/clang.ts
+++ b/lib/compilers/clang.ts
@@ -200,7 +200,7 @@ export class ClangCudaCompiler extends ClangCompiler {
override async objdump(outputFilename, result, maxSize) {
// For nvdisasm.
- const args = [outputFilename, '-c', '-g', '-hex'];
+ const args = [...this.compiler.objdumperArgs, outputFilename, '-c', '-g', '-hex'];
const execOptions = {maxOutput: maxSize, customCwd: path.dirname(outputFilename)};
const objResult = await this.exec(this.compiler.objdumper, args, execOptions);
diff --git a/lib/compilers/java.ts b/lib/compilers/java.ts
index bfcc19e76..5b6dac29e 100644
--- a/lib/compilers/java.ts
+++ b/lib/compilers/java.ts
@@ -70,6 +70,7 @@ export class JavaCompiler extends BaseCompiler {
.filter(f => f.endsWith('.class'))
.map(async classFile => {
const args = [
+ ...this.compiler.objdumperArgs,
// Prints out disassembled code, i.e., the instructions that comprise the Java bytecodes,
// for each of the methods in the class.
'-c',
diff --git a/lib/compilers/pascal-win.ts b/lib/compilers/pascal-win.ts
index 00b4bcba8..ca7d2747c 100644
--- a/lib/compilers/pascal-win.ts
+++ b/lib/compilers/pascal-win.ts
@@ -99,7 +99,7 @@ export class PascalWinCompiler extends BaseCompiler {
outputFilename = this.getOutputFilename(path.dirname(outputFilename));
}
- let args = ['-d', outputFilename];
+ let args = [...this.compiler.objdumperArgs, '-d', outputFilename];
if (intelAsm) args = args.concat(['-M', 'intel']);
return this.exec(this.compiler.objdumper, args, {maxOutput: 1024 * 1024 * 1024}).then(objResult => {
if (objResult.code === 0) {
diff --git a/lib/compilers/ptxas.ts b/lib/compilers/ptxas.ts
index 4073a8139..f315ac72e 100644
--- a/lib/compilers/ptxas.ts
+++ b/lib/compilers/ptxas.ts
@@ -121,7 +121,7 @@ export class PtxAssembler extends BaseCompiler {
override async objdump(outputFilename, result: any, maxSize: number) {
const dirPath = path.dirname(outputFilename);
- const args = ['-c', '-g', '-hex', outputFilename];
+ const args = [...this.compiler.objdumperArgs, '-c', '-g', '-hex', outputFilename];
const objResult = await this.exec(this.compiler.objdumper, args, {maxOutput: maxSize, customCwd: dirPath});
result.asm = objResult.stdout;
if (objResult.code === 0) {
diff --git a/lib/compilers/turboc.ts b/lib/compilers/turboc.ts
index 93df469f3..e09fed67b 100644
--- a/lib/compilers/turboc.ts
+++ b/lib/compilers/turboc.ts
@@ -53,12 +53,12 @@ export class TurboCCompiler extends DosboxCompiler {
return {stdout: [this.compiler.explicitVersion], stderr: [], code: 0};
}
const execOptions = this.getDefaultExecOptions();
- const versionFlag = '';
+ const versionFlag = [];
execOptions.timeoutMs = 0;
execOptions.ldPath = this.getSharedLibraryPathsAsLdLibraryPaths([]);
try {
- return this.execCompilerCached(this.compiler.exe, [versionFlag], execOptions);
+ return this.execCompilerCached(this.compiler.exe, versionFlag, execOptions);
} catch (err) {
logger.error(`Unable to get version for compiler '${this.compiler.exe}' - ${err}`);
return null;
diff --git a/lib/compilers/z88dk.ts b/lib/compilers/z88dk.ts
index 85d234336..663bafc92 100644
--- a/lib/compilers/z88dk.ts
+++ b/lib/compilers/z88dk.ts
@@ -134,7 +134,7 @@ export class z88dkCompiler extends BaseCompiler {
}
}
- const args = [outputFilename];
+ const args = [...this.compiler.objdumperArgs, outputFilename];
if (this.externalparser) {
const objResult = await this.externalparser.objdumpAndParseAssembly(result.dirPath, args, filters);