That is the alternative approach and, as I say, we have gone back and forth on this a couple of times now. The current approach has been frustrating for me over time because the full whitelist of supported flags isn't maintained correctly. As wasm-ld evolves new flags get added but emscripten's list is out-of-date. So we get bug reports where a new flag might be useful for debugging but the advice of adding `-Wl,-some-flag` to aid debugging doesn't work because `some-flag` gets filtered out.
Secondly, in most cases, the correct solution is to stop passing bad linker flags. I'd prefer to only ignore flags which are impossible/hard to remove from a given build system, or that we want to pretend to support. I'd rather not pretend to support arbitrary flags that we don't even know about.
Finally I believe the blacklist, of flags we what "fake" support for should not evolve over time and should be fixed (after an initial period I don't expect it to change).
Do you have projects that rely on faking support for certain flags? i.e. are you directly affected by this change?
cheers,
sam