diff --git a/koch.nim b/koch.nim index 9d59344f2b..79acc77915 100644 --- a/koch.nim +++ b/koch.nim @@ -299,7 +299,7 @@ of cmdArgument: of "boot": boot(op.cmdLineRest) of "clean": clean(op.cmdLineRest) of "web": web(op.cmdLineRest) - of "csource": csource(op.cmdLineRest) + of "csource", "csources": csource(op.cmdLineRest) of "zip": zip(op.cmdLineRest) of "inno": inno(op.cmdLineRest) of "install": install(op.cmdLineRest) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 3cb1482b72..649dcd2d40 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1612,6 +1612,7 @@ when defined(linux) or defined(solaris) or defined(bsd) or defined(aix): len = readlink(procPath, result, len) setLen(result, len) +when not (defined(windows) or defined(macosx)): proc getApplHeuristic(): string = result = string(paramStr(0)) # POSIX guaranties that this contains the executable