[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 09:36:19 PDT 2025


================
@@ -0,0 +1,43 @@
+// REQUIRES: lld
+
+/// Check DTLTO options are forwarded to the linker.
+
+// RUN: echo "--target=x86_64-linux-gnu \
+// RUN:   -Xthinlto-distributor=distarg1 \
+// RUN:   -Xthinlto-distributor=distarg2,distarg3 \
+// RUN:   -fuse-ld=lld" > %t.rsp
----------------
ilovepi wrote:

I'm not sure I follow you here, so maybe I'm missing some context? First, I don't see any response file other than the one you're creating here. Second, if you split the file into a response file and a source file, everything should still work fine you'd just have `%t/a.c` instead of `%s`. Or are you relying on substitution happening in the `echo` command? If so, that isn't a practice I've seen in many tests, and I'm not sure we want to encourage more use of that pattern.

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


More information about the llvm-commits mailing list