[lld-macho] Add new -reproducible flag
authorKeith Smiley <keithbsmiley@gmail.com>
Wed, 5 Apr 2023 21:46:06 +0000 (14:46 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Thu, 6 Apr 2023 16:59:53 +0000 (09:59 -0700)
commit1167d676100ffebcafaf130b3af9250d81c4f5c7
tree838ca08d4194ebb705f993ccbd8c3b9c8ede5ca1
parent40847375d8de63d30b791a1a29d25e29d83a5497
[lld-macho] Add new -reproducible flag

As of Xcode 14.3 it passes -reproducible by default to ld64. It seems
this flag was added in ld64 with Xcode 14.0, but it is not documented.
Through my testing the only thing I have seen it do is the same as
ZERO_AR_DATE, but it's possible it does more, or will do more in the
future. Since we already default to this option, this is more about
handling the command line flag to maintain Xcode compatibility than
anything else.

Differential Revision: https://reviews.llvm.org/D147663
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/test/MachO/stabs.s