diff options
-rw-r--r-- | lib/compilers/ldc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/ldc.ts b/lib/compilers/ldc.ts index 389a857ef..74e503d48 100644 --- a/lib/compilers/ldc.ts +++ b/lib/compilers/ldc.ts @@ -136,6 +136,7 @@ export class LDCCompiler extends BaseCompiler { // Override the IR file name method for LDC because the output file is different from clang. override getIrOutputFilename(inputFilename) { - return utils.changeExtension(inputFilename, '.ll'); + const outputFilename = this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase); + return utils.changeExtension(outputFilename, '.ll'); } } |