[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:43:57 PDT 2023


int3 accepted this revision.
int3 added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: lld/MachO/Options.td:674
+def reproducible : Flag<["-"], "reproducible">,
+    HelpText<"Make the output reproducible by removing timestamps and other non-deterministic data, this is the default">,
+    Group<grp_rare>;
----------------
try to avoid run-on sentences


================
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) | \
----------------
if `ZERO_AR_DATE=1` and `-reproducible` is set, what does ld64 do?


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