aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ada.js
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-01-26 19:09:19 +0000
committerGitHub <noreply@github.com>2022-01-26 19:09:19 +0000
commita0f1a6bd48dadd11e5f8dedcc623be46eb18758b (patch)
treece82b7801c49b4c95fa4999691ff4afeff229a74 /lib/compilers/ada.js
parent7b7c3e1a2acc5379e6afd531b7779929c71764fc (diff)
parent49e685b498eeac007276a6a3a744d427bf946390 (diff)
downloadcompiler-explorer-gh-1729.tar.gz
compiler-explorer-gh-1729.zip
Merge 49e685b498eeac007276a6a3a744d427bf946390 into 7b7c3e1a2acc5379e6afd531b7779929c71764fcgh-1729
Diffstat (limited to 'lib/compilers/ada.js')
-rw-r--r--lib/compilers/ada.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compilers/ada.js b/lib/compilers/ada.js
index 105ee8ae1..8219f9b35 100644
--- a/lib/compilers/ada.js
+++ b/lib/compilers/ada.js
@@ -123,6 +123,14 @@ export class AdaCompiler extends BaseCompiler {
for (let i = 0; i < options.length; i++) {
if (options[i] === '-cargs') {
options.splice(i, 0, inputFileName);
+
+ // 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}`,
+ );
+ }
break;
}
}