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

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 13:53:16 PST 2023


================
@@ -299,6 +299,8 @@ def : Flag<["--"], "time-trace">, Alias<time_trace_eq>,
 def time_trace_granularity_eq: Joined<["--"], "time-trace-granularity=">,
     HelpText<"Minimum time granularity (in microseconds) traced by time profiler">;
 
+def build_id: F<"build-id">, HelpText<"Generate build ID">;
----------------
mstorsjo wrote:

I think it'd be useful if we could have a negative form of this option as well, e.g. `-build-id:none` or something like that?

For the mingw case, this option is enabled by default whenever we're linking some sort of debug info - but we might want to disable it as well.

See https://github.com/mstorsjo/llvm-mingw/issues/352 for a user request for that feature.

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


More information about the llvm-commits mailing list