Closed Andarwinux closed 5 months ago
Right, we should hook up this option on the mingw linker level. We hooked up a bunch of them a while ago (on the main branch, past 17.x), but this one is still missing. FWIW, it is possible to pass with -Xlink
, but note that it takes a :
for the option value, not an =
. So for me, this seems to work with e.g. -Wl,-Xlink=-lldltocachepolicy:cache_size_bytes=1g
. (I didn’t test that it actually has the desired effect, but it doesn’t seem to warn at least.)
Confirmed -Xlink=-lldltocachepolicy:cache_size_bytes=1g
is working
I made a PR implementing this now at https://github.com/llvm/llvm-project/pull/77387.
MinGW mode lld doesn't seem to support
--thinlto-cache-policy
, I've also tried to pass it directly to COFF Linker via-Xlink=-lldltocachepolicy=cache_size_bytes=1g
, but it doesn't seem to work.