From 8886be242de8af6531204e2586b023f03b56992a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 30 Dec 2020 20:56:19 -0500 Subject: [PATCH] [lld/mac] Add -adhoc_codesign / -no_adhoc_codesign flags These are new in Xcode 12's ld64. lld never codesigns at the moment, so -no_adhoc_codesign doesn't even have to warn that it's not implemented. --- lld/MachO/Options.td | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lld/MachO/Options.td b/lld/MachO/Options.td index 8e88c74..6928cf2 100644 --- a/lld/MachO/Options.td +++ b/lld/MachO/Options.td @@ -512,6 +512,13 @@ def grp_rare : OptionGroup<"rare">, HelpText<"RARELY USED">; def v : Flag<["-"], "v">, HelpText<"Print the linker version and search paths and exit">, Group; +def adhoc_codesign : Flag<["-"], "adhoc_codesign">, + HelpText<"Write an ad-hocd code signature to the output file.">, + Flags<[HelpHidden]>, + Group; +def no_adhoc_codesign : Flag<["-"], "no_adhoc_codesign">, + HelpText<"Do not write an ad-hocd code signature to the output file.">, + Group; def version_details : Flag<["-"], "version_details">, HelpText<"Print the linker version in JSON form">, Flags<[HelpHidden]>, -- 2.7.4