On Fri, Mar 27, 2020 at 7:05 AM Floh <[email protected]> wrote:

> Apologies if this has already been discussed or asking an obviously dumb
> question, but shouldn't emcc be able to remove any unsupported options
> before passing them to wasm-ld without having to manually maintain a list
> of unsupported options, since emcc and wasm-ld are essentially
> "version-locked"?
>
>
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



> On Thursday, 26 March 2020 02:45:52 UTC+1, Sam Clegg wrote:
>>
>> After going back and forth on this issue I'm hoping to once again allow
>> arbitrary flags to be passed to the linker (wasm-ld) via the command line
>> (-Wl,xxx):  https://github.com/emscripten-core/emscripten/pull/10747.
>>
>> This means that some people will see linker errors because they (or thier
>> build systems) pass flags via `-Wl,xxx` that wasm-ld doesn't handle.  If
>> you encounter such errors you have we have two possible solutions for you:
>>
>> 1. Remove the offending flag from the linker command.
>> 2. Add it to the list of flags that emscripten will ignore not not pass
>> onto the linker (`UNSUPPORTED_LLD_FLAGS`).
>>
>> Hopefully with a combination of these two solutions the fallout of this
>> change should be minimal.
>>
>> cheers,
>> sam
>>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/0fcaf075-541b-48e5-9163-2c3b0ab33261%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/0fcaf075-541b-48e5-9163-2c3b0ab33261%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2-zMQn8f1viut6ieLbw%2BfVH6F5Q2Z_S6yQtOTiFY5u8ZQ%40mail.gmail.com.

Reply via email to