crc check for external files to compile; bugfix: os.parseCmdLine

This commit is contained in:
Andreas Rumpf 2010-04-05 19:47:18 +02:00
commit e90665bff2
7 changed files with 145 additions and 54 deletions

View file

@ -216,11 +216,10 @@ proc processPath(path: string): string =
result = UnixToNativePath(path % ["nimrod", getPrefixDir(), "lib", libpath])
proc processCompile(filename: string) =
var found, trunc: string
found = findFile(filename)
var found = findFile(filename)
if found == "": found = filename
trunc = changeFileExt(found, "")
extccomp.addExternalFileToCompile(trunc)
var trunc = changeFileExt(found, "")
extccomp.addExternalFileToCompile(found)
extccomp.addFileToLink(completeCFilePath(trunc, false))
proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) =