diff options
author | Felix Krause <contact@flyx.org> | 2016-10-03 12:06:54 +0200 |
---|---|---|
committer | Felix Krause <contact@flyx.org> | 2016-10-03 12:06:54 +0200 |
commit | cee445b88904109564d58de46581b8ad00531447 (patch) | |
tree | 08692720a599e6422657dff7fde55178b3d28db1 /lib/system/dyncalls.nim | |
parent | 9c91558e625582b91009973e7facd4156683a98b (diff) | |
download | Nim-cee445b88904109564d58de46581b8ad00531447.tar.gz |
Display hint for -d:nimDebugDlOpen on load failure
Diffstat (limited to 'lib/system/dyncalls.nim')
-rw-r--r-- | lib/system/dyncalls.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/dyncalls.nim b/lib/system/dyncalls.nim index f104e2805..fa997e982 100644 --- a/lib/system/dyncalls.nim +++ b/lib/system/dyncalls.nim @@ -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.} = |