diff options
author | Sam Clegg <sbc@chromium.org> | 2022-01-29 19:09:06 -0800 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2022-01-31 14:26:09 -0800 |
commit | 45ad3467b708618841869cb529a814001d2295f9 (patch) | |
tree | 4c5c1a7f74e163ac348d12bdf5250224993b798f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 2d66ed370a4065faa6347c5811c5ede92a1dea38 (diff) | |
download | llvm-45ad3467b708618841869cb529a814001d2295f9.zip llvm-45ad3467b708618841869cb529a814001d2295f9.tar.gz llvm-45ad3467b708618841869cb529a814001d2295f9.tar.bz2 |
[clang][WebAssembly] Imply -fno-threadsafe-static when threading is disabled
When we don't enable atomics we completely disabled threading in
which case there is no point in generating thread safe code for
static initialization.
This should always be safe because, in WebAssembly, it is not
possible to link object compiled without the atomics feature into a
mutli-threaded program.
See https://github.com/emscripten-core/emscripten/pull/16152
Differential Revision: https://reviews.llvm.org/D118571
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions