diff options
author | partouf <partouf@gmail.com> | 2021-12-28 17:22:35 +0000 |
---|---|---|
committer | partouf <partouf@gmail.com> | 2021-12-28 17:22:35 +0000 |
commit | 193e207ae9098ce57c65caec1a6b26efecf5fc43 (patch) | |
tree | 5f69a62d352ba7b67376277a22b78a0086e93822 /lib/compilers/ada.js | |
parent | c750f3c71c0497fc080dadd03590a660c4eee522 (diff) | |
parent | d7157c47e617b3c2a8e4956d559fb61cc34b88df (diff) | |
download | compiler-explorer-gh-1479.tar.gz compiler-explorer-gh-1479.zip |
Merge remote-tracking branch 'origin/main' into frontendtestinggh-1479
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r-- | lib/compilers/ada.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js index 6a93249de..daa6d538e 100644 --- a/lib/compilers/ada.js +++ b/lib/compilers/ada.js @@ -35,7 +35,9 @@ export class AdaCompiler extends BaseCompiler { this.compiler.supportsGccDump = true; this.compiler.removeEmptyGccDump = true; this.compiler.supportsIntel = true; - this.compiler.supportsGnatDebugView = true; + + // used for all GNAT related panes (Expanded code, Tree) + this.compiler.supportsGnatDebugViews = true; } getExecutableFilename(dirPath) { @@ -50,8 +52,13 @@ export class AdaCompiler extends BaseCompiler { // super is needed as it handles the GCC Dump files. const opts = super.optionsForBackend (backendOptions, outputFilename); - if (backendOptions.produceGnatDebug && this.compiler.supportsGnatDebugView) - opts.push('-gnatDGL'); + if (backendOptions.produceGnatDebug && this.compiler.supportsGnatDebugViews) + // This is using stdout + opts.push('-gnatGL'); + + if (backendOptions.produceGnatDebugTree && this.compiler.supportsGnatDebugViews) + // This is also using stdout + opts.push('-gnatdt'); return opts; } |