diff options
author | Ofek <ofekshilon@gmail.com> | 2023-11-04 21:01:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 20:01:43 +0100 |
commit | e7d266ac9c28f6b49a64df43db48353ed37fbbc7 (patch) | |
tree | 98e2b3c14fafd78e91fb6ecc9a7bc0a640519bf1 /lib/compilers/typescript-native.ts | |
parent | c122979cb4a1989bdbcb1c005281449729a67ea9 (diff) | |
download | compiler-explorer-e7d266ac9c28f6b49a64df43db48353ed37fbbc7.tar.gz compiler-explorer-e7d266ac9c28f6b49a64df43db48353ed37fbbc7.zip |
Fix #5255 (#5700)gh-9387
Diffstat (limited to 'lib/compilers/typescript-native.ts')
-rw-r--r-- | lib/compilers/typescript-native.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/typescript-native.ts b/lib/compilers/typescript-native.ts index cc0ff0df5..2a4a82022 100644 --- a/lib/compilers/typescript-native.ts +++ b/lib/compilers/typescript-native.ts @@ -29,7 +29,7 @@ import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js'; import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {LLVMIrBackendOptions} from '../../types/compilation/ir.interfaces.js'; import {BaseCompiler} from '../base-compiler.js'; -import {asSafeVer} from '../utils.js'; +import {asSafeVer, changeExtension} from '../utils.js'; import {TypeScriptNativeParser} from './argument-parsers.js'; import {ExecutableExecutionOptions} from '../../types/execution/execution.interfaces.js'; @@ -89,7 +89,7 @@ export class TypeScriptNativeCompiler extends BaseCompiler { const outputFilename = this.getOutputFilename(path.dirname(inputFilename), this.outputFilebase); // As per #4054, if we are asked for binary mode, the output will be in the .s file, no .ll will be emited if (!filters.binary) { - return outputFilename.replace('.s', '.ll'); + return changeExtension(outputFilename, '.ll'); } return outputFilename; } |