On Mon Nov 28 12:57:44 2022 +0000, Jacek Caban wrote:
I pushed a new version that just always passes `-fuse-ld`. We can't do the same for `-rtlib`, because `-rtlib=platform` requires your commit 0a4c6c9f98a6d, which is not yet present in released clang versions. I also think that this option shouldn't really matter and -nostdlib achieves that.
Thanks! This looks reasonable to me now I think.
Overall I'm not a fan of needing to pass `-fuse-ld` like this, but given what the current Clang code does, this is probably the most reasonable fix.
This (mis)feature seems to have been introduced in f96bedfce301aa3ebaa14968558cfd5e9431818e in llvm-project (https://github.com/llvm/llvm-project/commit/f96bedfce301aa3ebaa14968558cfd5e...) - I disagree with that patch quite a bit, but I'm not sure if I disagree enough to try to get it reversed... (The effort could also be spent on making default config files only apply to the intended native target.)