diff options
Diffstat (limited to 'lib/compilers')
-rw-r--r-- | lib/compilers/ada.js | 1 | ||||
-rw-r--r-- | lib/compilers/argument-parsers.js | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js index 7d61d70c4..971564edb 100644 --- a/lib/compilers/ada.js +++ b/lib/compilers/ada.js @@ -33,6 +33,7 @@ export class AdaCompiler extends BaseCompiler { constructor(info, env) { super(info, env); this.compiler.supportsGccDump = true; + this.compiler.removeEmptyGccDump = true; this.compiler.supportsIntel = true; this.compiler.supportsGnatDebugView = true; } diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js index c64de8549..1944711a1 100644 --- a/lib/compilers/argument-parsers.js +++ b/lib/compilers/argument-parsers.js @@ -100,6 +100,11 @@ export class GCCParser extends BaseParser { // This check is not infallible, but takes care of Rust and Swift being picked up :) if (_.find(keys, key => key.startsWith('-fdump-'))) { compiler.compiler.supportsGccDump = true; + + // By default, consider the compiler to be a regular GCC (eg. gcc, + // g++) and do the extra work of filtering out enabled pass that did + // not produce anything. + compiler.compiler.removeEmptyGccDump = true; } } |