diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index d3b3cee757..bbbbbfb8ee 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -614,7 +614,7 @@ proc CallCCompiler*(projectfile: string) = exefile = splitFile(projectFile).name & platform.os[targetOS].exeExt buildDll = "" if options.outFile.len > 0: - exefile = options.outFile + exefile = options.outFile.expandTilde if not noAbsolutePaths(): if not exeFile.isAbsolute(): exefile = joinPath(splitFile(projectFile).dir, exefile)