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

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 09:36:26 PST 2023


================
@@ -196,7 +196,8 @@ 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)">;
-defm build_id: B<"build-id", "Generate build ID", "Do not Generate build ID">;
+def build_id: J<"build-id=">, HelpText<"Generate build ID note (pass none to disable)">, 
----------------
ZequanWu wrote:

Added similar alias `--build-id` to `--build-id=` without argument.

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


More information about the llvm-commits mailing list