aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-01-29 19:09:06 -0800
committerSam Clegg <sbc@chromium.org>2022-01-31 14:26:09 -0800
commit45ad3467b708618841869cb529a814001d2295f9 (patch)
tree4c5c1a7f74e163ac348d12bdf5250224993b798f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent2d66ed370a4065faa6347c5811c5ede92a1dea38 (diff)
downloadllvm-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