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

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 12:42:33 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">;
----------------
ZequanWu wrote:

I'm thinking maybe build id should be off by default for `/lldmingw` + `/debug:dwarf` as now we have the `/build-id` flag to enable it explicitly. What do you think?

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


More information about the llvm-commits mailing list