- Change configuration files path to %NIM%/etc/nim. - Change the system library path to %NIM%/lib/nim. - Change DLL name from nimrtl.dll to libnimrtl.dll. - Add DLL of MinGW to DLL name of pcre wrapper. - Add DLL of MinGW to DLL name of sqlite3 wrapper. - Change the installation destination of the configuration file to %NIM%/etc/nim. - Change the installation destination of the nimrtl.dll to %NIM%/bin.
13 lines
591 B
Diff
13 lines
591 B
Diff
diff --git a/compiler/nimconf.nim b/compiler/nimconf.nim
|
|
index c0aeab7e3..491d23d88 100644
|
|
--- a/compiler/nimconf.nim
|
|
+++ b/compiler/nimconf.nim
|
|
@@ -227,6 +227,7 @@ proc getSystemConfigPath*(conf: ConfigRef; filename: RelativeFile): AbsoluteFile
|
|
# the UNIX way)
|
|
let p = getPrefixDir(conf)
|
|
result = p / RelativeDir"config" / filename
|
|
+ if not fileExists(result): result = p / RelativeDir"etc/nim" / filename
|
|
when defined(unix):
|
|
if not fileExists(result): result = p / RelativeDir"etc/nim" / filename
|
|
if not fileExists(result): result = AbsoluteDir"/etc/nim" / filename
|