You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add a helpful error message when failing to evaluate content after -s
* add a faq entry for -s errors with quotations
* when running the file packager standalone, mention -s FORCE_FILESYSTEM=1 is necessary, so people don't need to look in the docs
Copy file name to clipboardExpand all lines: emcc.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -909,7 +909,11 @@ def check(input_file):
909
909
value='"'+value+'"'
910
910
else:
911
911
value=value.replace('\\', '\\\\')
912
-
setattr(shared.Settings, key, eval(value))
912
+
try:
913
+
setattr(shared.Settings, key, eval(value))
914
+
exceptExceptionase:
915
+
logging.error('a problem occurred in evaluating content after a "-s", specifically %s . one possible cause of this is missing quotation marks (this depends on the shell you are running in; you may need quotation marks around the entire %s , or on an individual element)'% (change, change))
Copy file name to clipboardExpand all lines: site/source/docs/getting_started/FAQ.rst
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -368,6 +368,28 @@ will export ``ccall``. In both cases you can then access the exported function o
368
368
369
369
.. note:: Emscripten used to export many runtime methods by default. This increased code size, and for that reason we've changed that default. If you depend on something that used to be exported, you should see a warning pointing you to the solution, in an unoptimized build, or a build with ``ASSERTIONS`` enabled, which we hope will minimize any annoyance. See ``Changelog.markdown`` for details.
370
370
371
+
Why do I get a ``NameError`` or ``a problem occurred in evaluating content after a "-s"`` when I use a ``-s`` option?
0 commit comments