ports/lang/nim/files/patch-compiler-nimconf.nim
Bartek Rutkowski 3f0e9e73e6 lang/nim: update 0.11.2 -> 0.15.0
* Remove files/patch-lib-posix-posix.nim

PR:		213304
Submitted by:	wen
Approved by:	Neal Nelson <ports@nicandneal.net> (maintainer)
2016-10-15 14:07:04 +00:00

14 lines
573 B
Nim

--- compiler/nimconf.nim.orig 2016-10-08 02:17:21 UTC
+++ compiler/nimconf.nim
@@ -221,9 +221,8 @@ proc getSystemConfigPath(filename: strin
# the UNIX way)
let p = getPrefixDir()
result = joinPath([p, "config", filename])
- when defined(unix):
- if not existsFile(result): result = joinPath([p, "etc", filename])
- if not existsFile(result): result = "/etc/" & filename
+ if not existsFile(result): result = joinPath([p, "etc", filename])
+ if not existsFile(result): result = "/etc/" & filename
proc loadConfigs*(cfg: string) =
setDefaultLibpath()