about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorTomoaki Kawada <kawada@kmckk.co.jp>2022-02-10 13:10:25 +0900
committerTomoaki Kawada <kawada@kmckk.co.jp>2022-02-10 13:33:35 +0900
commit64406c5996a0775493c8a2acd457e612bd84cde6 (patch)
tree2c8e1a1d96f1e8596ecf858bf8ff998736a01bce /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent9a5a961be97f405e751dd2cf966e1cdb80a612c2 (diff)
downloadrust-64406c5996a0775493c8a2acd457e612bd84cde6.tar.gz
rust-64406c5996a0775493c8a2acd457e612bd84cde6.zip
kmc-solid: Use the filesystem thread-safety wrapper
Neither the SOLID filesystem API nor built-in filesystems guarantee
thread safety by default. Although this may suffice in general embedded-
system use cases, and in fact the API can be used from multiple threads
without any problems in many cases, this has been a source of
unsoundness in `std::sys::solid::fs`.

This commit updates the `std` code to leverage the filesystem thread-
safety wrapper to enforce thread safety. This is done by prefixing all
paths passed to the filesystem API with `\TS`. (Note that relative paths
aren't supported in this platform.)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions