aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/argument-parsers.ts')
-rw-r--r--lib/compilers/argument-parsers.ts9
1 files changed, 9 insertions, 0 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'];