summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorJörg Wollenschläger <joerg.wollenschlaeger@siliconstudio.co.jp>2018-06-26 20:08:40 +0900
committerJörg Wollenschläger <joerg.wollenschlaeger@siliconstudio.co.jp>2018-06-26 20:08:40 +0900
commit7e89f9a09a2b181fae6e6e3caaf7bea781c3e864 (patch)
tree59e7e3395ddaf3251e86952c42dd9f40d3889ea8 /compiler/pragmas.nim
parent5976bd96be3d14e033005333d8ddab85b2ee7874 (diff)
downloadNim-7e89f9a09a2b181fae6e6e3caaf7bea781c3e864.tar.gz
Don't remove extension of source files twice, if filenames contain dots
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index c78a3519c..afe60e9dd 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -466,7 +466,7 @@ proc processCompile(c: PContext, n: PNode) =
       else:
         found = findFile(c.config, s)
         if found.len == 0: found = s
-    let obj = toObjFile(c.config, completeCFilePath(c.config, changeFileExt(found, ""), false))
+    let obj = toObjFile(c.config, completeCFilePath(c.config, found, false))
     docompile(c, it, found, obj)
 
 proc processCommonLink(c: PContext, n: PNode, feature: TLinkFeature) =