Skip to content

Commit

Permalink
Remove tlsEmulation enabled from Windows + GCC config (#19119) [backp…
Browse files Browse the repository at this point in the history
…ort:1.6]

This flag has a very significant performance impact on programs compiled with --threads:on. It is also apparently not needed anymore for standard circumstances. Can we remove the config? See #18146 (comment) for discussion and perf impact. [backport:1.6]

(cherry picked from commit 77b696c)
  • Loading branch information
guzba authored and narimiran committed Nov 11, 2021
1 parent 3f6de92 commit 1090b0c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ nimblepath="$home/.nimble/pkgs/"
# Configuration for the GNU C/C++ compiler:
@if windows:
#gcc.path = r"$nim\dist\mingw\bin"
@if gcc or tcc:
tlsEmulation:on
@end
@end

gcc.maxerrorsimpl = "-fmax-errors=3"
Expand Down

0 comments on commit 1090b0c

Please sign in to comment.