about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-29 07:54:06 +0000
committerbors <bors@rust-lang.org>2022-08-29 07:54:06 +0000
commit7a42ca942cda0d197a63373127e7e373305957a0 (patch)
treed3ff0487c13616d512fae7745f3aefdbdc53ccd5 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent94b2b15e63c5d2b2a6a0910e3dae554ce9415bf9 (diff)
parentbd8b4b9c1588f0c681162ead34cc91b3f9a52bfc (diff)
downloadrust-7a42ca942cda0d197a63373127e7e373305957a0.tar.gz
rust-7a42ca942cda0d197a63373127e7e373305957a0.zip
Auto merge of #100786 - sunshowers:macos-posix-chdir, r=sunshowers
Use posix_spawn for absolute paths on macOS

Currently, on macOS, Rust never uses the fast posix_spawn path if a
directory change is requested, due to a bug in Apple's libc. However, the
bug is only triggered if the program is a relative path.

This PR makes it so that the fast path continues to work if the program
is an absolute path or a lone filename.

This was an alternative proposed in https://github.com/rust-lang/rust/pull/80537#issue-776674009, and it makes a measurable performance difference in some of my code that spawns thousands of processes.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions