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

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 12:48:02 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 we could do that as well; I think it can be ok to change the MinGW specifics in the lld-link level interface, as that interface shouldn't really be used much externally.

We probably would want to keep the behaviour on the MinGW driver level the same, but we could make the MinGW driver pass the `/build-id` flag by default, unless a MinGW level `--build-id=none` is passed.

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


More information about the llvm-commits mailing list