diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler-finder.js | 1 | ||||
-rw-r--r-- | lib/compilers/ada.js | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/compiler-finder.js b/lib/compiler-finder.js index 9729d8a2c..f9f73286d 100644 --- a/lib/compiler-finder.js +++ b/lib/compiler-finder.js @@ -212,6 +212,7 @@ export class CompilerFinder { intelAsm: props('intelAsm', ''), instructionSet: props('instructionSet', ''), needsMulti: !!props('needsMulti', true), + adarts: props('adarts', ''), supportsDemangle: !!demangler, supportsBinary, interpreted, 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; } } |