diff options
author | Araq <rumpf_a@web.de> | 2015-01-28 12:51:24 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-01-28 12:59:05 +0100 |
commit | d9c73b49d16c64db841185d4a3efe32bc4d4dc1f (patch) | |
tree | b8be68a37ba9e0d70ce401f7441e55c21bbf850b /compiler | |
parent | dbe71c715edc0eaa22a7d623da0851c6627a81ac (diff) | |
download | Nim-d9c73b49d16c64db841185d4a3efe32bc4d4dc1f.tar.gz |
the compiler knows vxWorks is an OS
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/condsyms.nim | 2 | ||||
-rw-r--r-- | compiler/platform.nim | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index 9a7a87771..8a5189167 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -114,7 +114,7 @@ proc initDefines*() = defineSymbol("mswindows") defineSymbol("win32") of osLinux, osMorphos, osSkyos, osIrix, osPalmos, osQnx, osAtari, osAix, - osHaiku: + osHaiku, osVxWorks: # these are all 'unix-like' defineSymbol("unix") defineSymbol("posix") diff --git a/compiler/platform.nim b/compiler/platform.nim index c6cb3d244..8360a9dcc 100644 --- a/compiler/platform.nim +++ b/compiler/platform.nim @@ -21,8 +21,8 @@ type # conditionals to condsyms (end of module). osNone, osDos, osWindows, osOs2, osLinux, osMorphos, osSkyos, osSolaris, osIrix, osNetbsd, osFreebsd, osOpenbsd, osAix, osPalmos, osQnx, osAmiga, - osAtari, osNetware, osMacos, osMacosx, osHaiku, osJS, osNimrodVM, - osStandalone + osAtari, osNetware, osMacos, osMacosx, osHaiku, osVxworks, + osJS, osNimrodVM, osStandalone type TInfoOSProp* = enum @@ -135,7 +135,11 @@ const (name: "Haiku", parDir: "..", dllFrmt: "lib$1.so", altDirSep: ":", objExt: ".o", newLine: "\x0A", pathSep: ":", dirSep: "/", scriptExt: ".sh", curDir: ".", exeExt: "", extSep: ".", - props: {ospNeedsPIC, ospPosix, ospLacksThreadVars}), + props: {ospNeedsPIC, ospPosix, ospLacksThreadVars}), + (name: "VxWorks", parDir: "..", dllFrmt: "lib$1.so", altDirSep: "/", + objExt: ".o", newLine: "\x0A", pathSep: ";", dirSep: "\\", + scriptExt: ".sh", curDir: ".", exeExt: "", extSep: ".", + props: {ospNeedsPIC, ospPosix, ospLacksThreadVars}), (name: "JS", parDir: "..", dllFrmt: "lib$1.so", altDirSep: "/", objExt: ".o", newLine: "\x0A", |