summary refs log tree commit diff stats
path: root/lib/system/dyncalls.nim
diff options
context:
space:
mode:
authorFelix Krause <contact@flyx.org>2016-10-03 12:06:54 +0200
committerFelix Krause <contact@flyx.org>2016-10-03 12:06:54 +0200
commitcee445b88904109564d58de46581b8ad00531447 (patch)
tree08692720a599e6422657dff7fde55178b3d28db1 /lib/system/dyncalls.nim
parent9c91558e625582b91009973e7facd4156683a98b (diff)
downloadNim-cee445b88904109564d58de46581b8ad00531447.tar.gz
Display hint for -d:nimDebugDlOpen on load failure
Diffstat (limited to 'lib/system/dyncalls.nim')
-rw-r--r--lib/system/dyncalls.nim2
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.} =