This message was deleted.
# native
s
This message was deleted.
d
My gut feeling, without looking at the code would be to use targetPlatform on the toolchain you don’t want to ensure they don’t target your current platform. However, that may not work given there are some magic happening in Gradle regarding target selection. The other possibility would be to explicitly declare your MSVC toolchain.If both solution were already tried, we would have too look at the code to verify the code path and how we can influence it. 😞
t
I found a solution. While doing the finalize attribute for the toolchain registry, I can just remove the default ones from the registry. It’s ugly, but it’s the best solution I could find because the default toolchains are always added.