Fix some LTO-related emscripten link-time error

I have absolutely no idea. The error in question is the following:

	wasm-ld: error: /home/lbphacker/.emscripten_cache/sysroot/lib/wasm32-emscripten/lto/libhtml5.a(callback.o): attempt to add bitcode file after LTO (_emscripten_run_callback_on_thread)

I have no idea where we use _emscripten_run_callback_on_thread, and I have no idea why LTO would think it's not required when it's obviously required. This commit fixes it by holding the linker's hand even more than it already had.
This commit is contained in:
Tamás Bálint Misius 2023-12-09 16:51:42 +01:00
parent cc27126f27
commit 28b5b6dc97
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -212,6 +212,7 @@ if host_platform == 'emscripten'
'-s', 'FS_DEBUG',
'-s', 'MODULARIZE',
'-s', 'EXPORT_NAME=create_' + app_exe,
'-Wl,-u,_emscripten_run_callback_on_thread',
'-lidbfs.js',
]
emcc_args = [