about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-05-26 17:38:47 +0000
committerbors <bors@rust-lang.org>2020-05-26 17:38:47 +0000
commit5239f5c57bb6eb9e894081727f5aba0a67e89763 (patch)
tree47bb71e0e829facb54220895cbaf89ce67ddf0b1 /library/std/src/sys/unix/stack_overflow.rs
parentaeca4d6428c52cbf2c8d1f28657b0bdf92e4ea7c (diff)
parentafd88f2a332df214d0c3a2cfbe9cc05482955a98 (diff)
downloadrust-5239f5c57bb6eb9e894081727f5aba0a67e89763.tar.gz
rust-5239f5c57bb6eb9e894081727f5aba0a67e89763.zip
Auto merge of #71931 - alexcrichton:reproducible-macos, r=eddyb
Export ZERO_AR_DATE for macos linker invocations

This commit attempts to improve reproducibility of builds on macOS by
exporting the `ZERO_AR_DATE=1` environment variable for all invocations
of the linker. While it looks like this env var is targeted at just the
`ar` command (which does actually read this) it appears that recent-ish
versions of the linker *also* read this environment variable. This
env var forces the linker to set a deterministic zero value for the
mtime in the N_OSO field of the object file.

Currently it's believe that older versions of the linker will simply
ignore this env var, while newer versions will read it and produce a
deterministic output for compilations with debuginfo.

Closes #47086
Closes #66568
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions