Don't remove extension of source files twice, if filenames contain dots

This commit is contained in:
Jörg Wollenschläger 2018-06-26 20:08:40 +09:00
commit 7e89f9a09a
2 changed files with 2 additions and 2 deletions

View file

@ -603,7 +603,7 @@ proc addExternalFileToCompile*(conf: ConfigRef; c: var Cfile) =
proc addExternalFileToCompile*(conf: ConfigRef; filename: string) =
var c = Cfile(cname: filename,
obj: toObjFile(conf, completeCFilePath(conf, changeFileExt(filename, ""), false)),
obj: toObjFile(conf, completeCFilePath(conf, filename, false)),
flags: {CfileFlag.External})
addExternalFileToCompile(conf, c)