From 38aec488b74fdc3316ca28f54527bdedf9b202dc Mon Sep 17 00:00:00 2001 From: alaviss Date: Thu, 28 Feb 2019 20:47:15 +0700 Subject: compiler/commands: keep extension for output file (#10755) Fixes #10747 --- compiler/commands.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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) -- cgit 1.4.1-2-gfad0