Skip to content

Commit 133a868

Browse files
ci4ic4narimiran
authored andcommitted
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. (cherry picked from commit e9ed090)
1 parent 7f6681b commit 133a868

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/nim.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,9 @@ nimblepath="$home/.nimble/pkgs/"
181181

182182
gcc.maxerrorsimpl = "-fmax-errors=3"
183183

184-
@if freebsd:
184+
@if freebsd or netbsd:
185185
tlsEmulation:off
186186
@elif bsd:
187-
# at least NetBSD has problems with thread local storage:
188187
tlsEmulation:on
189188
@end
190189

0 commit comments

Comments
 (0)