bugfix: complex.nim compiles

This commit is contained in:
Andreas Rumpf 2010-04-04 18:43:57 +02:00
commit b2ad7b30dc
7 changed files with 55 additions and 79 deletions

View file

@ -375,7 +375,7 @@ proc getCompileCFileCmd(cfilename: string, isExternal: bool = false): string =
compilePattern = cc[c].compilerExe
if targetOS == platform.hostOS: cfile = cfilename
else: cfile = extractFileName(cfilename)
if not isExternal or (targetOS != platform.hostOS): objfile = toObjFile(cfile)
if not isExternal or targetOS != platform.hostOS: objfile = toObjFile(cfile)
else: objfile = completeCFilePath(toObjFile(cfile))
cfile = quoteIfContainsWhite(AddFileExt(cfile, cExt))
objfile = quoteIfContainsWhite(objfile)