Open to suggestions for better text for that warning. The current text is
the best I could think of.

-s X=Y commands typically matter when converting from bitcode to JS, so
during link. But in general, specifying the same options also during
compilation, as mentioned in
https://github.com/kripken/emscripten/wiki/Building-Projects , is safest
and simplest. There is no downside to specifying them in both places.

- Alon



On Thu, Jun 26, 2014 at 12:38 AM, Mark Callow <[email protected]>
wrote:

>  Hi,
>
> I am using vs-tool in MSVS 2010. I set the following in my link command
>
> -s "ERROR_ON_UNDEFINED_SYMBOLS=1" -s "MEMORY_SIZE=33554432" -s
> NO_EXIT_RUNTIME
>
> and I get a warning "GCCLINK : warning root: treating -s as linker option
> and not as -s OPT=VALUE for js compilation". This prompted me to look at
> settings.js and emcc. I eventually that the warning is caused in this case,
> because I omitted "=1" from NO_EXIT_RUNTIME. (because an e-mail of Alon's
> had stated "-s NO_EXIT_RUNTIME").
>
> The comment at the top  suggests all the -s options are compile-time
> options when I found the warning in emcc, I see it is triggered for any OPT
> without an =VALUE. Since the message was emitted from my link step, it was
> very confusing. It also raises the question should I be specifying these
> options in my compile command rather than the link command?
>
> Some of the settings really seem to be for link time, e.g.,
> ERROR_ON_UNDEFINED_SYMBOLS which adds to the confusion. Then there are
> some, e.g., -s USE_TYPED_ARRAYS=VALUE, for which emcc has a corresponding
> option, in this case --typed-arrays linker option. Do I need to specify
> these in both the compile & link step?
>
> Regards
>
>     -Mark
> --
>  注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
>
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
>
> --
> 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