mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 15:31:28 +00:00
Display hint for -d:nimDebugDlOpen on load failure
This commit is contained in:
@@ -26,6 +26,8 @@ proc nimLoadLibraryError(path: string) =
|
||||
stderr.rawWrite("could not load: ")
|
||||
stderr.rawWrite(path)
|
||||
stderr.rawWrite("\n")
|
||||
when not(defined(nimDebugDlOpen)):
|
||||
stderr.rawWrite("compile with -d:nimDebugDlOpen for more information\n")
|
||||
quit(1)
|
||||
|
||||
proc procAddrError(name: cstring) {.noinline.} =
|
||||
|
||||
Reference in New Issue
Block a user