[compiler-rt] Don't explictly ad-hoc sign dylibs on APPLE if ld is new enough
authorNico Weber <thakis@chromium.org>
Mon, 11 Apr 2022 01:28:29 +0000 (21:28 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 13 Apr 2022 12:35:51 +0000 (08:35 -0400)
commitba4537b22796a561dbcd7cd4e666bb5039510b21
tree0aae13023e5c9e28995673557289779d078051be
parentbd941c83f51af4b6ee18d6a228dc1cf20bcf1443
[compiler-rt] Don't explictly ad-hoc sign dylibs on APPLE if ld is new enough

ld64 implicitly ad-hoc code-signs as of Xcode 12, and `strip` and friends know
how keep this special ad-hoc signature valid.

So this should have no effective behavior change, except that you can now strip
libclang_rt.asan_osx_dynamic.dylib and it'll still have a valid ad-hoc
signature, instead of strip printing "warning: changes being made to the file
will invalidate the code signature in:" and making the ad-hoc code signature
invalid.

Differential Revision: https://reviews.llvm.org/D123475
compiler-rt/cmake/Modules/AddCompilerRT.cmake