================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to