aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/argument-parsers.ts9
-rw-r--r--lib/compilers/golang.ts2
-rw-r--r--lib/compilers/nvcc.ts2
3 files changed, 11 insertions, 2 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts
index f3756203c..b528f8a55 100644
--- a/lib/compilers/argument-parsers.ts
+++ b/lib/compilers/argument-parsers.ts
@@ -161,6 +161,10 @@ export class GCCParser extends BaseParser {
if (this.hasSupport(options, '-masm=')) {
await this.checkAndSetMasmIntelIfSupported(compiler);
}
+ if (this.hasSupport(options, '-fstack-usage')) {
+ compiler.compiler.stackUsageArg = '-fstack-usage';
+ compiler.compiler.supportsStackUsageOutput = true;
+ }
if (this.hasSupport(options, '-fdiagnostics-color')) {
if (compiler.compiler.options) compiler.compiler.options += ' ';
compiler.compiler.options += '-fdiagnostics-color=always';
@@ -255,6 +259,11 @@ export class ClangParser extends BaseParser {
compiler.compiler.optArg = '-fsave-optimization-record';
compiler.compiler.supportsOptOutput = true;
}
+ if (this.hasSupport(options, '-fstack-usage')) {
+ compiler.compiler.stackUsageArg = '-fstack-usage';
+ compiler.compiler.supportsStackUsageOutput = true;
+ }
+
if (this.hasSupport(options, '-emit-llvm')) {
compiler.compiler.supportsIrView = true;
compiler.compiler.irArg = ['-Xclang', '-emit-llvm', '-fsyntax-only'];
diff --git a/lib/compilers/golang.ts b/lib/compilers/golang.ts
index e9f2e3965..903278461 100644
--- a/lib/compilers/golang.ts
+++ b/lib/compilers/golang.ts
@@ -226,7 +226,7 @@ export class GolangCompiler extends BaseCompiler {
result.asm = this.convertNewGoL(out);
result.stderr = [];
result.stdout = utils.parseOutput(logging, result.inputFilename);
- return Promise.all([result, '']);
+ return Promise.all([result, '', '']);
}
override getSharedLibraryPathsAsArguments() {
diff --git a/lib/compilers/nvcc.ts b/lib/compilers/nvcc.ts
index e293de18d..598435261 100644
--- a/lib/compilers/nvcc.ts
+++ b/lib/compilers/nvcc.ts
@@ -110,7 +110,7 @@ export class NvccCompiler extends BaseCompiler {
result.asm = typeof asm === 'string' ? asm : asm.asm;
return result;
});
- return Promise.all([asmPromise, optPromise]);
+ return Promise.all([asmPromise, optPromise, '']);
}
override async extractDeviceCode(result, filters, compilationInfo: CompilationInfo) {