[lld] [llvm] [DTLTO][LLD][COFF] Add support for Integrated Distributed ThinLTO (PR #148594)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 19 06:34:12 PDT 2025


================
@@ -40,3 +39,37 @@ The command-line interface is as follows:
 Some LLD LTO options (e.g., ``--lto-sample-profile=<file>``) are supported.
 Currently, other options are silently accepted but do not have the intended
 effect. Support for such options will be expanded in the future.
+
+COFF LLD
+--------
+
+The command-line interface is as follows:
+
+- ``/thinlto-distributor:<path>``
----------------
bd1976bris wrote:

Thanks for this comment. I have changed the tests to use the `-thinlto*` spelling for consistency. However, I strongly feel that for user facing content like the documentation and the new error message we should use the `/thinlto*` spelling for consistency with the help text. The currently help text renders like:

```
  /thinlto-distributor-arg:<value>
                          Arguments to pass to the ThinLTO distributor
  /thinlto-distributor:<value>
                          Distributor to use for ThinLTO backend compilations. If specified, ThinLTO backend compilations will be distributed
  /thinlto-emit-imports-files
                          Emit .imports files with -thinlto-index-only
  /thinlto-index-only:<value>
                          -thinlto-index-only and also write native module names to file
  /thinlto-index-only     Instead of linking, emit ThinLTO index files
  /thinlto-object-suffix-replace:<value>
                          'old;new' replace old suffix with new suffix in ThinLTO index
  /thinlto-prefix-replace:<value>
                          'old;new' replace old prefix with new prefix in ThinLTO outputs
  /thinlto-remote-compiler-arg:<value>
                          Compiler arguments for the ThinLTO distributor to pass for ThinLTO backend compilations
  /thinlto-remote-compiler:<value>
                          Compiler for the ThinLTO distributor to invoke for ThinLTO backend compilations
```

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


More information about the llvm-commits mailing list