aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ada.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2022-04-25 18:22:11 -0500
committerGitHub <noreply@github.com>2022-04-25 18:22:11 -0500
commit21b764f392e4b1062e61ec910c590f3dfba4d544 (patch)
tree2a4ea9342cd816e8f382ff6682c1fb0a42e14474 /lib/compilers/ada.js
parentd64a8d7e8919b6bedf636004bc493e28e6e5c840 (diff)
downloadcompiler-explorer-21b764f392e4b1062e61ec910c590f3dfba4d544.tar.gz
compiler-explorer-21b764f392e4b1062e61ec910c590f3dfba4d544.zip
Unify comma configuration; and apply format to some files. (#3559)gh-2517
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r--lib/compilers/ada.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js
index 8b33ae269..936f173d9 100644
--- a/lib/compilers/ada.js
+++ b/lib/compilers/ada.js
@@ -24,11 +24,13 @@
import path from 'path';
-import { BaseCompiler } from '../base-compiler';
+import {BaseCompiler} from '../base-compiler';
import * as utils from '../utils';
export class AdaCompiler extends BaseCompiler {
- static get key() { return 'ada'; }
+ static get key() {
+ return 'ada';
+ }
constructor(info, env) {
super(info, env);
@@ -51,9 +53,9 @@ export class AdaCompiler extends BaseCompiler {
return path.join(dirPath, 'example.o');
}
- optionsForBackend(backendOptions, outputFilename){
+ optionsForBackend(backendOptions, outputFilename) {
// super is needed as it handles the GCC Dump files.
- const opts = super.optionsForBackend (backendOptions, outputFilename);
+ const opts = super.optionsForBackend(backendOptions, outputFilename);
if (backendOptions.produceGnatDebug && this.compiler.supportsGnatDebugViews)
// This is using stdout
@@ -86,7 +88,7 @@ export class AdaCompiler extends BaseCompiler {
'-eS', // commands are not errors
'-cargs', // Compiler Switches for gcc.
'-o',
- outputFilename,
+ outputFilename
);
if (this.compiler.intelAsm && filters.intel) {
@@ -100,7 +102,7 @@ export class AdaCompiler extends BaseCompiler {
'make',
'-eS',
'-g',
- '-cargs', // Compiler Switches for gcc.
+ '-cargs' // Compiler Switches for gcc.
);
}
@@ -126,9 +128,7 @@ export class AdaCompiler extends BaseCompiler {
// If the compiler contains a RTS, add the extra --RTS=.
// FIXME: should probably check the user did not use one.
if (this.compiler.adarts) {
- options.splice(i, 0,
- `--RTS=${this.compiler.adarts}`,
- );
+ options.splice(i, 0, `--RTS=${this.compiler.adarts}`);
}
break;
}