Skip to content

Commit

Permalink
Fix bug after PR emscripten-core#4665 that rebuilding SDL2 with -s US…
Browse files Browse the repository at this point in the history
…E_SDL2=1 after emcc --clear-ports would fail.
  • Loading branch information
juj committed Dec 19, 2016
1 parent 051ef31 commit 485a49b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ var LibraryManager = {

// If there are any explicitly specified system JS libraries to link to, add those to link.
if (SYSTEM_JS_LIBRARIES) {
libraries = libraries.concat(SYSTEM_JS_LIBRARIES);
libraries = libraries.concat(SYSTEM_JS_LIBRARIES.split(','));
}

libraries = libraries.concat(additionalLibraries);
Expand Down
2 changes: 1 addition & 1 deletion tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ def path_to_system_js_libraries_for_settings(link_settings):
if 'LZ4=1' in link_settings: system_js_libraries += ['library_lz4.js']
if 'USE_SDL=1' in link_settings: system_js_libraries += ['library_sdl.js']
if 'USE_SDL=2' in link_settings: system_js_libraries += ['library_egl.js', 'library_glut.js', 'library_gl.js']
return system_js_libraries
return map(lambda x: path_from_root('src', x), system_js_libraries)

# compatibility with existing emcc, etc. scripts
Cache = cache.Cache(debug=DEBUG_CACHE)
Expand Down

0 comments on commit 485a49b

Please sign in to comment.