fixes DLL generation

This commit is contained in:
Araq 2014-04-21 03:44:48 +02:00
commit 5e839d50b4
7 changed files with 56 additions and 49 deletions

View file

@ -30,9 +30,9 @@ when defined(createNimRtl):
{.pragma: inl.}
{.pragma: compilerRtl, compilerproc, exportc: "nimrtl_$1", dynlib.}
elif defined(useNimRtl):
when hostOS == "windows":
when defined(windows):
const nimrtl* = "nimrtl.dll"
elif hostOS == "macosx":
elif defined(macosx):
const nimrtl* = "nimrtl.dylib"
else:
const nimrtl* = "libnimrtl.so"