diff --git a/emscripten-version.txt b/emscripten-version.txt index 6c13ae0d09f3e..5b3a48eab21e4 100644 --- a/emscripten-version.txt +++ b/emscripten-version.txt @@ -1,2 +1,2 @@ -1.21.9 +1.21.10 diff --git a/emscripten.py b/emscripten.py index a8a4dbe783f83..faf41c409a1fb 100755 --- a/emscripten.py +++ b/emscripten.py @@ -14,6 +14,7 @@ from tools import shared from tools import jsrun, cache as cache_module, tempfiles from tools.response_file import read_response_file +from tools.shared import WINDOWS __rootpath__ = os.path.abspath(os.path.dirname(__file__)) def path_from_root(*pathelems): @@ -708,13 +709,15 @@ def fix(m): funcs_js[i] = None funcs_js_item = indexize(funcs_js_item) funcs_js_item = blockaddrsize(funcs_js_item) + if WINDOWS: funcs_js_item = funcs_js_item.replace('\r\n', '\n') # Normalize to UNIX line endings, otherwise writing to text file will duplicate \r\n to \r\r\n! outfile.write(funcs_js_item) funcs_js = None - outfile.write(indexize(post)) - if DEBUG: logging.debug(' emscript: phase 3 took %s seconds' % (time.time() - t)) - + indexized = indexize(post) + if WINDOWS: indexized = indexized.replace('\r\n', '\n') # Normalize to UNIX line endings, otherwise writing to text file will duplicate \r\n to \r\r\n! + outfile.write(indexized) outfile.close() + if DEBUG: logging.debug(' emscript: phase 3 took %s seconds' % (time.time() - t)) # emscript_fast: emscript'en code using the 'fast' compilation path, using # an LLVM backend @@ -1316,9 +1319,11 @@ def fix(m): outfile.write("var SYMBOL_TABLE = %s;" % json.dumps(symbol_table).replace('"', '')) for i in range(len(funcs_js)): # do this loop carefully to save memory + if WINDOWS: funcs_js[i] = funcs_js[i].replace('\r\n', '\n') # Normalize to UNIX line endings, otherwise writing to text file will duplicate \r\n to \r\r\n! outfile.write(funcs_js[i]) funcs_js = None + if WINDOWS: post = post.replace('\r\n', '\n') # Normalize to UNIX line endings, otherwise writing to text file will duplicate \r\n to \r\r\n! outfile.write(post) outfile.close() diff --git a/site/source/_themes/emscripten_sphinx_rtd_theme/footer.html b/site/source/_themes/emscripten_sphinx_rtd_theme/footer.html index 668c9f8566ac0..d331c5abb713b 100644 --- a/site/source/_themes/emscripten_sphinx_rtd_theme/footer.html +++ b/site/source/_themes/emscripten_sphinx_rtd_theme/footer.html @@ -29,8 +29,9 @@ ('https://groups.google.com/forum/#!forum/emscripten-discuss', 'Mailing list', 'Mailing list'), ('https://github.com/kripken/emscripten/wiki', 'Wiki', 'Wiki'), ('https://plus.google.com/100622854474489221138', 'Google+', 'Google+'), - ('docs/getting_started/release_notes', 'Release notes', 'Release notes'), - ('docs/site/blogs', 'Blogs', 'Blogs'), + ('docs/introducing_emscripten/release_notes', 'Release notes', 'Release notes'), + ('docs/introducing_emscripten/community', 'Blogs', 'Blogs'), + ('docs/introducing_emscripten/community', 'Help', 'Contact'), ] -%}