Print out more detailed error messages when compilation fails
This commit is contained in:
parent
85345d2d34
commit
5b35efe5b7
1 changed files with 3 additions and 1 deletions
|
|
@ -68,7 +68,9 @@ when defined(posix):
|
||||||
|
|
||||||
proc nimLoadLibrary(path: string): LibHandle =
|
proc nimLoadLibrary(path: string): LibHandle =
|
||||||
result = dlopen(path, RTLD_NOW)
|
result = dlopen(path, RTLD_NOW)
|
||||||
#c_fprintf(c_stdout, "%s\n", dlerror())
|
let error = dlerror()
|
||||||
|
if error != nil:
|
||||||
|
c_fprintf(c_stdout, "%s\n", error)
|
||||||
|
|
||||||
proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr =
|
proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr =
|
||||||
result = dlsym(lib, name)
|
result = dlsym(lib, name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue