about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2022-10-02 17:31:43 +0200
committerMartin Nordholts <enselic@gmail.com>2022-10-02 17:49:36 +0200
commit093b075d327d1c7c7e0730e46f1d5c2d4aa47f5a (patch)
tree49ae7a0d88fe87c54350fcd33f83de2dba53e570 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent756e7be5eb923ec955dfd8dec2a0d3ac81cfdf55 (diff)
downloadrust-093b075d327d1c7c7e0730e46f1d5c2d4aa47f5a.tar.gz
rust-093b075d327d1c7c7e0730e46f1d5c2d4aa47f5a.zip
rustc: Use `unix_sigpipe` instead of `rustc_driver::set_sigpipe_handler`
This is the first (known) step towards starting to use `unix_sigpipe` in
the wild. Eventually, `rustc_driver::set_sigpipe_handler` can be removed
and all clients can use `unix_sigpipe` instead.

For now we just start using `unix_sigpipe` in once place: `rustc`
itself.

It is easy to manually verify this change. If you remove
`#[unix_sigpipe = "sig_dfl"]` and run `./x.py build` you will get an ICE
when you do `./build/x86_64-unknown-linux-gnu/stage1/bin/rustc --help |
false`. Add back `#[unix_sigpipe = "sig_dfl"]` and the ICE disappears
again.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions