diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-08 11:10:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-08 11:10:08 -0700 |
commit | 24872b7905216f29300c61b6c936103faf60d9fe (patch) | |
tree | 55282da84bd48016e7542591b3444fca74f9a0f2 /tools | |
parent | cce819306db8eaa79c6fd599ddbead42d3346f32 (diff) | |
parent | 5d680fd50dce38d4389b20cf2f27a60b1a5ad0ab (diff) |
Merge branch 'link_exports' of github.com:ncbray/emscripten into incoming
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index c0df227d..b80d9389 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -876,7 +876,10 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e @staticmethod def link(files, target, force_archive_contents=False): actual_files = [] - unresolved_symbols = set(['main']) # tracking unresolveds is necessary for .a linking, see below. (and main is always a necessary symbol) + # Tracking unresolveds is necessary for .a linking, see below. + # Specify all possible entry points to seed the linking process. + # For a simple application, this would just be "main". + unresolved_symbols = set([func[1:] for func in Settings.EXPORTED_FUNCTIONS]) resolved_symbols = set() temp_dirs = [] files = map(os.path.abspath, files) |