Its also important to remember that emscripten sometimes does
compilation at link time, within the driver even if you don't ask it
to explicitly.     This means that while many of the options can be
passed just to the linker, the linker flag much include all the
compiler flags.  i.e. link flags must be a superset of the compile
flags.  Otherwise you could end with some sources compiled with
different options.
On Tue, Oct 2, 2018 at 7:21 AM Nolan Darilek <[email protected]> wrote:
>
> Ah, perfect, thanks! I'd assumed something like 
> emulate_function_pointer_casts would be needed at compile time rather than 
> link time. Now that I'm using it when linking, I appear to be making some 
> progress.
>
>
> On 10/2/18 4:58 AM, Floh wrote:
>
> The emscripten-specific "-s options" are usually only needed on the linker 
> step, it seem to remember that there were a handful exceptions, but those 
> should be mentioned here: 
> https://github.com/kripken/emscripten/blob/incoming/src/settings.js
>
> Most of the compiler options (like what optimization level, or producing 
> debug information) should be given to both compile- and linker-steps (for 
> some this is required, for others it won't do any harm).
>
> Linker-specific options (like with what libraries to link) should only go to 
> the linker step.
>
> I think that's it :)
> -Floh.
>
> On Monday, 1 October 2018 21:12:22 UTC+2, Nolan Darilek wrote:
>>
>> In trying to debug my function pointer issues, I'm reading lots of
>> documentation that tells me to enable some setting or other. I'm not
>> immediately clear on whether a given setting needs to be enabled at
>> build time, link time, or both. Is there any sort of breakdown as to
>> when a given setting applies, or should I just always use all of them in
>> all phases? I'm realizing that my build system is a bit of a mess, with
>> some dependencies built in shell scripts and others built in Nim or
>> Rust's own build tooling, and they're not sharing the same flags and
>> settings. I'm going to try unifying everything so my settings are all in
>> one place, but I don't know which settings apply to which phases in the
>> build cycle, or even if I should be making that distinction.
>>
>>
>> Thanks.
>>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to