summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorChavdar Ivanov <ci4ic4@gmail.com>2023-01-02 08:16:18 +0000
committerGitHub <noreply@github.com>2023-01-02 09:16:18 +0100
commite9ed090c338c0da1c543f5303b5f583f98e8d3f3 (patch)
tree4dba9b2f86a238df62e7fb91a9705545f2e3cab7 /config
parent5b20f0685c71e68ab08f7a1941f7e160d91e538f (diff)
downloadNim-e9ed090c338c0da1c543f5303b5f583f98e8d3f3.tar.gz
Update nim.cfg (#21204)
tlsEmulation:on under NetBSD-10Beta and NetBSD-current produces an executable which crashes immediately as follows:

Core was generated by `koch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000047b4c2 in nimZeroMem ()
(gdb) bt
#0  0x000000000047b4c2 in nimZeroMem ()
#1  0x00000000004897b2 in threadVarAlloc__system_2162 ()
#2  0x000000000048980e in initThreadVarsEmulation ()
#3  0x0000000000489848 in PreMain ()
#4  0x000000000048986a in NimMain ()
#5  0x00000000004898a9 in main ()

I can't speak about the other BSDs.
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 1601ebe08..f7b7c119a 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -181,10 +181,9 @@ nimblepath="$home/.nimble/pkgs/"
 
 gcc.maxerrorsimpl = "-fmax-errors=3"
 
-@if freebsd:
+@if freebsd or netbsd:
   tlsEmulation:off
 @elif bsd:
-  # at least NetBSD has problems with thread local storage:
   tlsEmulation:on
 @end