about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-12 05:52:17 +0000
committerbors <bors@rust-lang.org>2020-11-12 05:52:17 +0000
commit55794e43960ad3647e78ea5b0cb5ad0c5c0596a8 (patch)
tree8f15452ce9172f3340c458c214eb9f70ff91e359 /compiler/rustc_codegen_llvm/src/builder.rs
parent5a6a41e7847ff5f85a31b87431ce2af29c567f1d (diff)
parentbf3be09ee800de4ec98dfeea5088639e1c538813 (diff)
downloadrust-55794e43960ad3647e78ea5b0cb5ad0c5c0596a8.tar.gz
rust-55794e43960ad3647e78ea5b0cb5ad0c5c0596a8.zip
Auto merge of #78965 - jryans:emscripten-threads-libc, r=kennytm
Update thread and futex APIs to work with Emscripten

This updates the thread and futex APIs in `std` to match the APIs exposed by
Emscripten. This allows threads to run on `wasm32-unknown-emscripten` and the
thread parker to compile without errors related to the missing `futex` module.

To make use of this, Rust code must be compiled with `-C target-feature=atomics`
and Emscripten must link with `-pthread`.

I have confirmed this works well locally when building multithreaded crates.
Attempting to enable `std` thread tests currently fails for seemingly obscure
reasons and Emscripten is currently disabled in CI, so further work is needed to
have proper test coverage here.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions