[clang] [llvm] [DTLTO] Serialize of LTO Config (PR #219894)

Konstantin Belochapka via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 17:22:44 PST 2026


kbelochapka wrote:

> Would it be possible to serialize to a separate file and then pass that file to each backend compilation via a new command line option to Clang. Perhaps there a technical reason to prefer the approach you have here? To me, the separate JSON file seems cleaner?

Hi @bd1976bris , it's definitely cleaner and simpler. The challenge is ensuring that the distributed system delivers this file to Clang on the remote machine. In most cases, this would require modifying the distributed system's codebase, while in others, a configuration change would be sufficient.

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


More information about the cfe-commits mailing list