@@ -1744,15 +1744,15 @@ def default_setting(name, new_default):
1744
1744
settings .FILESYSTEM = 0
1745
1745
settings .SYSCALLS_REQUIRE_FILESYSTEM = 0
1746
1746
settings .FETCH = 1
1747
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , ' library_asmfs.js') ))
1747
+ settings .JS_LIBRARIES .append ((0 , ' library_asmfs.js' ))
1748
1748
1749
1749
# Explicitly drop linking in a malloc implementation if program is not using any dynamic allocation calls.
1750
1750
if not settings .USES_DYNAMIC_ALLOC :
1751
1751
settings .MALLOC = 'none'
1752
1752
1753
1753
if settings .FETCH and final_suffix in EXECUTABLE_ENDINGS :
1754
1754
state .forced_stdlibs .append ('libfetch' )
1755
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , ' library_fetch.js') ))
1755
+ settings .JS_LIBRARIES .append ((0 , ' library_fetch.js' ))
1756
1756
if settings .USE_PTHREADS :
1757
1757
settings .FETCH_WORKER_FILE = unsuffixed (os .path .basename (target )) + '.fetch.js'
1758
1758
@@ -1837,7 +1837,7 @@ def default_setting(name, new_default):
1837
1837
exit_with_error ('USE_PTHREADS=2 is no longer supported' )
1838
1838
if settings .ALLOW_MEMORY_GROWTH :
1839
1839
diagnostics .warning ('pthreads-mem-growth' , 'USE_PTHREADS + ALLOW_MEMORY_GROWTH may run non-wasm code slowly, see https://github.com/WebAssembly/design/issues/1271' )
1840
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , ' library_pthread.js') ))
1840
+ settings .JS_LIBRARIES .append ((0 , ' library_pthread.js' ))
1841
1841
settings .EXPORTED_FUNCTIONS += [
1842
1842
'___emscripten_pthread_data_constructor' ,
1843
1843
'___pthread_tsd_run_dtors' ,
@@ -1872,7 +1872,7 @@ def default_setting(name, new_default):
1872
1872
# set location of worker.js
1873
1873
settings .PTHREAD_WORKER_FILE = unsuffixed (os .path .basename (target )) + '.worker.js'
1874
1874
else :
1875
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , ' library_pthread_stub.js') ))
1875
+ settings .JS_LIBRARIES .append ((0 , ' library_pthread_stub.js' ))
1876
1876
1877
1877
if settings .FORCE_FILESYSTEM and not settings .MINIMAL_RUNTIME :
1878
1878
# when the filesystem is forced, we export by default methods that filesystem usage
@@ -2853,14 +2853,14 @@ def consume_arg_file():
2853
2853
options .tracing = True
2854
2854
newargs [i ] = ''
2855
2855
settings_changes .append ("EMSCRIPTEN_TRACING=1" )
2856
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , ' library_trace.js') ))
2856
+ settings .JS_LIBRARIES .append ((0 , ' library_trace.js' ))
2857
2857
elif check_flag ('--emit-symbol-map' ):
2858
2858
options .emit_symbol_map = True
2859
2859
settings .EMIT_SYMBOL_MAP = 1
2860
2860
elif check_flag ('--bind' ):
2861
2861
settings .EMBIND = 1
2862
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , 'embind' , 'emval.js' )))
2863
- settings .SYSTEM_JS_LIBRARIES .append ((0 , shared . path_from_root ( 'src' , 'embind' , 'embind.js' )))
2862
+ settings .JS_LIBRARIES .append ((0 , os . path . join ( 'embind' , 'emval.js' )))
2863
+ settings .JS_LIBRARIES .append ((0 , os . path . join ( 'embind' , 'embind.js' )))
2864
2864
elif check_arg ('--embed-file' ):
2865
2865
options .embed_files .append (consume_arg ())
2866
2866
elif check_arg ('--preload-file' ):
@@ -2884,7 +2884,7 @@ def consume_arg_file():
2884
2884
elif check_flag ('--no-entry' ):
2885
2885
options .no_entry = True
2886
2886
elif check_arg ('--js-library' ):
2887
- settings .SYSTEM_JS_LIBRARIES .append ((i + 1 , os .path .abspath (consume_arg_file ())))
2887
+ settings .JS_LIBRARIES .append ((i + 1 , os .path .abspath (consume_arg_file ())))
2888
2888
elif check_flag ('--remove-duplicates' ):
2889
2889
diagnostics .warning ('legacy-settings' , '--remove-duplicates is deprecated as it is no longer needed. If you cannot link without it, file a bug with a testcase' )
2890
2890
elif check_flag ('--jcache' ):
@@ -3575,12 +3575,12 @@ def process_libraries(state, linker_inputs):
3575
3575
3576
3576
new_flags .append ((i , flag ))
3577
3577
3578
- settings .SYSTEM_JS_LIBRARIES += libraries
3578
+ settings .JS_LIBRARIES += libraries
3579
3579
3580
- # At this point processing SYSTEM_JS_LIBRARIES is finished, no more items will be added to it.
3580
+ # At this point processing JS_LIBRARIES is finished, no more items will be added to it.
3581
3581
# Sort the input list from (order, lib_name) pairs to a flat array in the right order.
3582
- settings .SYSTEM_JS_LIBRARIES .sort (key = lambda lib : lib [0 ])
3583
- settings .SYSTEM_JS_LIBRARIES = [lib [1 ] for lib in settings .SYSTEM_JS_LIBRARIES ]
3582
+ settings .JS_LIBRARIES .sort (key = lambda lib : lib [0 ])
3583
+ settings .JS_LIBRARIES = [lib [1 ] for lib in settings .JS_LIBRARIES ]
3584
3584
state .link_flags = new_flags
3585
3585
3586
3586
0 commit comments