Skip to content

Commit

Permalink
fix ldc llvmir (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Nov 29, 2023
1 parent b134451 commit b918a93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/compilers/ldc.ts
Expand Up @@ -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');
}
}

0 comments on commit b918a93

Please sign in to comment.