Skip to content

Commit edf2711

Browse files
authored
Remove unneeded -fno-threadsafe-statics. NFC (#16425)
The corresponding upstream clang change landed so this is no longer needed.
1 parent 11d2317 commit edf2711

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

emcc.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -882,13 +882,6 @@ def get_cflags(user_args):
882882
# data and other nice fixes.
883883
cflags += ['-D_LIBCPP_ABI_VERSION=2']
884884

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-
892885
# Changes to default clang behavior
893886

894887
# Implicit functions can cause horribly confusing function pointer type errors, see #2175

0 commit comments

Comments
 (0)