- 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.
15 lines
586 B
Diff
15 lines
586 B
Diff
diff --git a/compiler/options.nim b/compiler/options.nim
|
|
index b4d2bb64e..05bc696e4 100644
|
|
--- a/compiler/options.nim
|
|
+++ b/compiler/options.nim
|
|
@@ -465,7 +465,8 @@ proc setDefaultLibpath*(conf: ConfigRef) =
|
|
else:
|
|
conf.libpath = prefix / RelativeDir"lib"
|
|
else:
|
|
- conf.libpath = prefix / RelativeDir"lib"
|
|
+ conf.libpath = prefix / RelativeDir"lib/nim"
|
|
+ if not existsDir(conf.libpath.string): conf.libpath = prefix / RelativeDir"lib"
|
|
|
|
# Special rule to support other tools (nimble) which import the compiler
|
|
# modules and make use of them.
|