diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-02-28 20:47:15 +0700 |
---|---|---|
committer | Miran <narimiran@disroot.org> | 2019-02-28 14:47:15 +0100 |
commit | 38aec488b74fdc3316ca28f54527bdedf9b202dc (patch) | |
tree | 34753799856eef2ce34dd126c3a0af112ee3bd40 /compiler | |
parent | 1b542e732077f763f12c51b4f31992060ff24fba (diff) | |
download | Nim-38aec488b74fdc3316ca28f54527bdedf9b202dc.tar.gz |
compiler/commands: keep extension for output file (#10755)
Fixes #10747
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 1f46abca4..abee4e9b2 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -388,7 +388,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "out", "o": expectArg(conf, switch, arg, pass, info) let f = splitFile(arg.expandTilde) - conf.outFile = RelativeFile f.name + conf.outFile = RelativeFile f.name & f.ext conf.outDir = toAbsoluteDir f.dir of "outdir": expectArg(conf, switch, arg, pass, info) |