diff options
author | Patrick Quist <partouf@gmail.com> | 2023-06-23 12:21:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 12:21:28 +0200 |
commit | 76beb84b2e08e6790342017444c57151eed2c0b6 (patch) | |
tree | 6fa9db99ccfa98f6535cfe8809502b086a332063 /lib/compilers/llvm-mos.ts | |
parent | 72e6b34d55189b4426b0dfd4f41d94464b3eda64 (diff) | |
download | compiler-explorer-76beb84b2e08e6790342017444c57151eed2c0b6.tar.gz compiler-explorer-76beb84b2e08e6790342017444c57151eed2c0b6.zip |
C64 emulation (#5198)gh-7958
Diffstat (limited to 'lib/compilers/llvm-mos.ts')
-rw-r--r-- | lib/compilers/llvm-mos.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/compilers/llvm-mos.ts b/lib/compilers/llvm-mos.ts index 473e93263..9ff68a784 100644 --- a/lib/compilers/llvm-mos.ts +++ b/lib/compilers/llvm-mos.ts @@ -90,6 +90,15 @@ export class LLVMMOSCompiler extends ClangCompiler { if (await utils.fileExists(nesFile)) { await this.addArtifactToResult(res, nesFile, ArtifactType.nesrom); } + } else if (this.compiler.exe.includes('c64')) { + let prgFile = outputFilename; + if (outputFilename.endsWith('.elf')) { + prgFile = outputFilename.substr(0, outputFilename.length - 4); + } + + if (await utils.fileExists(prgFile)) { + await this.addArtifactToResult(res, prgFile, ArtifactType.c64prg); + } } return res; |