We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-fno-threadsafe-statics
1 parent 11d2317 commit edf2711Copy full SHA for edf2711
emcc.py
@@ -882,13 +882,6 @@ def get_cflags(user_args):
882
# data and other nice fixes.
883
cflags += ['-D_LIBCPP_ABI_VERSION=2']
884
885
- if not settings.USE_PTHREADS:
886
- # There is no point in using thread safe static inits in code that cannot
887
- # be part of a multi-threaded program.
888
- # TODO(sbc): Remove this if/when upstream clang takes care of this
889
- # automatically: https://reviews.llvm.org/D118571.
890
- cflags += ['-fno-threadsafe-statics']
891
-
892
# Changes to default clang behavior
893
894
# Implicit functions can cause horribly confusing function pointer type errors, see #2175
0 commit comments