summary refs log tree commit diff stats
path: root/rod/extccomp.nim
diff options
context:
space:
mode:
Diffstat (limited to 'rod/extccomp.nim')
-rw-r--r--[-rwxr-xr-x]rod/extccomp.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/rod/extccomp.nim b/rod/extccomp.nim
index ce8e71547..f6e74f8a8 100755..100644
--- a/rod/extccomp.nim
+++ b/rod/extccomp.nim
@@ -294,7 +294,8 @@ proc addLinkOption(option: string) =
   if find(linkOptions, option, 0) < 0: addOpt(linkOptions, option)
   
 proc toObjFile(filenameWithoutExt: string): string = 
-  result = changeFileExt(filenameWithoutExt, cc[ccompiler].objExt)
+  # BUGFIX: changeFileExt is wrong, use addFileExt!
+  result = addFileExt(filenameWithoutExt, cc[ccompiler].objExt)
 
 proc addFileToCompile(filename: string) = 
   appendStr(toCompile, filename)