aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson_options.txt
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2025-05-11 08:37:15 -0500
committerCalvin Rose <calsrose@gmail.com>2025-05-11 08:37:15 -0500
commit3d3e880f52e4b40540b7722b6fc0f58aa5bd7443 (patch)
tree41e08f9851fa965077bcaf94583fe14aff85c605 /meson_options.txt
parentMerge pull request #1594 from sogaiu/tweak-docstrings (diff)
Allow configuration of JANET_THREAD_LOCAL. Address #1595
This is to better allow configuration on various, unknown compilers. Previously, we hardcoded how thread local storage was specified for a few different compilers, but we were not following and C standard. In C11, there is a standardized storage specifier _Thread_local for this storage class, however this is now deprecated in various C++ compilers for a new keyword, confusingly. Janet also does not claim to require the C11 standard, so for maximum flexibilty, the storage specifier must be specified at configure time.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 7b9b33af..d055c713 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -30,6 +30,7 @@ option('max_macro_expand', type : 'integer', min : 1, max : 8000, value : 200)
option('stack_max', type : 'integer', min : 8096, max : 0x7fffffff, value : 0x7fffffff)
option('arch_name', type : 'string', value: '')
+option('thread_local_prefix', type : 'string', value: '')
option('os_name', type : 'string', value: '')
option('shared', type : 'boolean', value: true)
option('cryptorand', type : 'boolean', value: true)