Skip to content

Commit

Permalink
fix duplicated symbol __copy_tls in LLVM 17
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Oct 21, 2023
1 parent 69532ad commit b98c581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/emnapi/src/thread/async_worker_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct worker_args {

extern void __wasm_init_tls(void*);

__attribute__((__weak__))
void* __copy_tls(unsigned char *mem) {
size_t tls_align = __builtin_wasm_tls_align();
volatile void* tls_base = __builtin_wasm_tls_base();
Expand Down

0 comments on commit b98c581

Please sign in to comment.