ref: 342eb13e0742ef6fbd0b5641d359c20a1521ad83
parent: 642122150e2f012055d5cf82d38037153ca3afe6
author: Martin Hermant <martin.hermant@gmail.com>
date: Tue May 30 13:50:35 EDT 2017
wscript : emscripten clarify comments on added flags
--- a/wscript
+++ b/wscript
@@ -239,7 +239,7 @@
ctx.env.LINKFLAGS += ['-Oz']
ctx.env.cshlib_PATTERN = '%s.min.js'
- # lib doesnt ship file system support
+ # doesnt ship file system support in lib
ctx.env.LINKFLAGS_cshlib += ['-s', 'NO_FILESYSTEM=1']
# put memory file inside generated js files for easier portability
ctx.env.LINKFLAGS += ['--memory-init-file', '0']
@@ -246,7 +246,7 @@
ctx.env.cprogram_PATTERN = "%s.js"
ctx.env.cstlib_PATTERN = '%s.a'
- # get exposed functions
+ # tell emscripten functions we want to expose
from python.lib.gen_external import get_c_declarations, get_cpp_objects_from_c_declarations, get_all_func_names_from_lib, generate_lib_from_c_declarations
c_decls = get_c_declarations(usedouble=False) # emscripten can't use double
objects = get_cpp_objects_from_c_declarations(c_decls)