Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thread local storage support for dynamic libraries #13447

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Link side module against exception's code TLS
  • Loading branch information
jprendes committed Feb 1, 2021
commit c39d38af954a67a7e1f5afa4a0f45d78ed5f6f55
7 changes: 4 additions & 3 deletions tools/system_libs.py
Original file line number Diff line number Diff line change
@@ -823,9 +823,10 @@ class side_module(MTLibrary):
def get_files(self):
side_module_files = []
if self.is_mt:
side_module_files += files_in_path(
path_components=['system', 'lib', 'pthread'],
filenames=['emscripten_tls_init.c'])
side_module_files += [
shared.path_from_root('system', 'lib', 'pthread', 'emscripten_tls_init.c'),
shared.path_from_root('system', 'lib', 'compiler-rt', 'emscripten_exception_builtins.c'),
]

return side_module_files