[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 09:23:49 PST 2023


================
@@ -196,6 +196,9 @@ defm guard_longjmp : B<"guard-longjmp",
   "Do not enable Control Flow Guard long jump hardening">;
 defm error_limit:
   EqLong<"error-limit", "Maximum number of errors to emit before stopping (0 = no limit)">;
+def build_id: J<"build-id=">, HelpText<"Generate build ID note (pass none to disable)">, 
----------------
zmodem wrote:

What is one supposed to pass after `=` to enable it?

If we only support `-build-id` and `-build-id=none`, perhaps those should just be two flags instead?

https://github.com/llvm/llvm-project/pull/71433


More information about the llvm-commits mailing list