nimbuild should work again

This commit is contained in:
Araq
2012-11-01 01:11:48 +01:00
parent faed98d215
commit 42d0911d6a
11 changed files with 106 additions and 31 deletions

View File

@@ -14,6 +14,9 @@
## For OpenSSL support compile with ``-d:ssl``. When using SSL be aware that
## most functions will then raise ``ESSL`` on SSL errors.
when hostos == "solaris":
{.passl: "-lsocket -lnsl".}
import os, parseutils
from times import epochTime
@@ -24,9 +27,6 @@ when defined(Windows):
import winlean
else:
import posix
when defined(solaris):
{.passl: "-lsocket -lnsl".}
# Note: The enumerations are mapped to Window's constants.

View File

@@ -1671,7 +1671,6 @@ proc debugEcho*[T](x: varargs[T, `$`]) {.magic: "Echo", noSideEffect.}
template newException*(exceptn: typeDesc, message: string): expr =
## creates an exception object of type ``exceptn`` and sets its ``msg`` field
## to `message`. Returns the new exception object.
# block: # open a new scope
var
e: ref exceptn
new(e)