summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorIco Doornekamp <ico@pruts.nl>2020-01-15 11:06:41 +0100
committerAndreas Rumpf <rumpf_a@web.de>2020-01-15 11:06:41 +0100
commit79a326759a5fb49bed60163e48e8e17f3c1ee3a3 (patch)
tree831b77bcd852ad8cdecee71b70c32156a0009beb /compiler
parentd31e32743fa3ff7d157632909ae220cc0d34e841 (diff)
downloadNim-79a326759a5fb49bed60163e48e8e17f3c1ee3a3.tar.gz
Added 'ansic' os support for minimal (embedded) targets (#13088)
* os:any implementation
* os:asny: omit flock/funlock calls in echoBinSafe
* Disabled default "unhandled expection" reporting for `--os:any` to reduce
code size. Added unhandledExceptionHook instead which can be used to get
a notification from Nim and handle it from the application.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/platform.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/platform.nim b/compiler/platform.nim
index c5d1ac6f3..4bac7c5a1 100644
--- a/compiler/platform.nim
+++ b/compiler/platform.nim
@@ -22,7 +22,7 @@ type
     osNone, osDos, osWindows, osOs2, osLinux, osMorphos, osSkyos, osSolaris,
     osIrix, osNetbsd, osFreebsd, osOpenbsd, osDragonfly, osAix, osPalmos, osQnx,
     osAmiga, osAtari, osNetware, osMacos, osMacosx, osIos, osHaiku, osAndroid, osVxWorks
-    osGenode, osJS, osNimVM, osStandalone, osNintendoSwitch
+    osGenode, osJS, osNimVM, osStandalone, osNintendoSwitch, osAny
 
 type
   TInfoOSProp* = enum
@@ -177,6 +177,10 @@ const
       objExt: ".o", newLine: "\x0A", pathSep: ":", dirSep: "/",
       scriptExt: ".sh", curDir: ".", exeExt: ".elf", extSep: ".",
       props: {ospNeedsPIC, ospPosix}),
+     (name: "Any", parDir: "..", dllFrmt: "lib$1.so", altDirSep: "/",
+      objExt: ".o", newLine: "\x0A", pathSep: ":", dirSep: "/",
+      scriptExt: ".sh", curDir: ".", exeExt: "", extSep: ".",
+      props: {}),
      ]
 
 type