[PATCH] D147663: [lld-macho] Add new -reproducible flag

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 18:45:24 PDT 2023


int3 added inline comments.


================
Comment at: lld/test/MachO/stabs.s:45-46
 # RUN:       -D#TEST_TIME=0 -D#FOO_TIME=0
+# RUN: env ZERO_AR_DATE=0 %lld -lSystem -reproducible %t/test.o %t/foo.o \
+# RUN:     %t/no-debug.o -o %t/test
+# RUN: (llvm-objdump --section-headers %t/test; dsymutil -s %t/test) | \
----------------
int3 wrote:
> if `ZERO_AR_DATE=1` and `-reproducible` is set, what does ld64 do?
nvm I got confused about which value of ZERO_AR_DATE would give us a reproducible binary. Ignore the previous comment :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147663/new/

https://reviews.llvm.org/D147663



More information about the llvm-commits mailing list