aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ldc.ts
diff options
context:
space:
mode:
authorpartouf <partouf@gmail.com>2023-11-30 00:39:10 +0100
committerpartouf <partouf@gmail.com>2023-11-30 00:39:10 +0100
commite129f242b1df184e332ae4efc6bdf7890c030f02 (patch)
treeae1544f9df1ae6b01d7162aeae136e0d9998380f /lib/compilers/ldc.ts
parent142691231d82c7577f3e9bb86547f7a21c472a12 (diff)
parentb918a936fb96e95b26953db887adc6ecfc0b99ad (diff)
downloadcompiler-explorer-gh-9782.tar.gz
compiler-explorer-gh-9782.zip
Merge branch 'main' of https://github.com/compiler-explorer/compiler-explorer into maingh-9782
Diffstat (limited to 'lib/compilers/ldc.ts')
-rw-r--r--lib/compilers/ldc.ts3
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');
}
}