I'm building a large project that is the combination of several libraries.
Currently, I'm exporting every public API in all of the included libraries
by adding the C attribute "used" in my wrapper API, e.g. "int
__attribute__((used, noinline)) getFoo()".
I want to reduce the size of the final output by statically analyzing the
API's that are actually being used by my application and pass them in as
EXPORTED_FUNCTIONS. I hoped that by passing a file reference, I could still
include a large number of functions to export. Any suggestions for where to
go from here?
Traceback (most recent call last):
File "/emsdk_portable/emscripten/master/emcc", line 1260, in <module>
shared.Building.llvm_opt(final, link_opts)
File "/emsdk_portable/emscripten/master/tools/shared.py", line 1428, in
llvm_opt
output = Popen([LLVM_OPT, filename] + opts + ['-o', target],
stdout=PIPE).communicate()[0]
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 709, in __init__
errread, errwrite)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1326, in _execute_child
raise child_exception
OSError: [Errno 7] Argument list too long
--
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.