The motivation for this is ld.lld --help targeting MinGW which currently prints help for the ELF backend unless -m i386pe{,p} is added. This confuses build systems that grep through linker help to find supported flags.
This matches LD from Binutils which always prints help for MinGW when configured to target it.
After this change, the backend can still be overridden to any supported ELF/MinGW target by using correct -m <arch>.
How about a boolean variable LLD_DEFAULT_LD_LLD_IS_MINGW?
Then you can write #if LLD_DEFAULT_LD_LLD_IS_MINGW, a Bazel based build system which does not need to this variable (my users) does not need any change.
Additionally, the gn build will not break.