summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2018-08-16 18:12:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-16 18:12:37 +0200
commit2da0341b4d6828479c5dc75a233b47732f53cf6c (patch)
tree525b358312f727da17dc631e0e2090041c46f8eb /lib/nimbase.h
parent87b2d2aad6a19ae0e2cafb7fcc8ac1502aed01fa (diff)
downloadNim-2da0341b4d6828479c5dc75a233b47732f53cf6c.tar.gz
Genode fixes (#8501)
* Genode fixes

- wrap strings in "Genode::Cstring" when logging
- define SIGABRT for Genode
- disable GCC -fstack-protector
- use log RPC for fatal messages
- add --os:genode build to appveyor
- define paramStr and paramCount

* Select fixups for Genode POSIX
Diffstat (limited to 'lib/nimbase.h')
-rw-r--r--lib/nimbase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index 6dc742910..84972fcb0 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -129,13 +129,13 @@ __clang__
        defined __DMC__ || \
        defined __BORLANDC__ )
 #  define NIM_THREADVAR __declspec(thread)
+#elif defined(__TINYC__) || defined(__GENODE__)
+#  define NIM_THREADVAR
 /* note that ICC (linux) and Clang are covered by __GNUC__ */
 #elif defined __GNUC__ || \
        defined __SUNPRO_C || \
        defined __xlC__
 #  define NIM_THREADVAR __thread
-#elif defined __TINYC__
-#  define NIM_THREADVAR
 #else
 #  error "Cannot define NIM_THREADVAR"
 #endif