diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2020-05-05 14:25:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2020-05-26 07:38:43 -0700 |
| commit | afd88f2a332df214d0c3a2cfbe9cc05482955a98 (patch) | |
| tree | 1a45cba5c67b34f4fe879e667adf993a9ed7bdbc /library/std/src/sys/unix/stack_overflow.rs | |
| parent | cb272d5d21c94f9a460d68d76817227a5913fbf7 (diff) | |
| download | rust-afd88f2a332df214d0c3a2cfbe9cc05482955a98.tar.gz rust-afd88f2a332df214d0c3a2cfbe9cc05482955a98.zip | |
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
