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

Fix make THREAD_MODEL=posix #311

Merged
merged 24 commits into from
Aug 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
626362a
Fixes for the THREAD_MODEL=posix build
sbc100 Jul 18, 2022
384da08
Fix expected symbols from previous commit
abrown Jul 26, 2022
0e7956a
Enable `lock` in `random.c` when threads are enabled
abrown Jul 26, 2022
2ab390a
Disable `aio.h` when compiling for threads
abrown Jul 26, 2022
b2f40de
Specify the TLS model until LLVM 15 is released
abrown Jul 27, 2022
9d3b1e4
Rename `__wasi_libc_pthread_self` to `__wasilibc_pthread_self`
abrown Jul 28, 2022
04f6c3f
Add different sets of expected output based on THREAD_MODEL
abrown Jul 28, 2022
d2d3e5c
Re-add trailing whitespace to `predefined-macros.txt`
abrown Jul 28, 2022
83a80a7
Protect `preopens.c` against concurrent access
abrown Jul 28, 2022
247bfeb
Only build thread-capable wasi-libc on latest version of Clang
abrown Jul 28, 2022
0acb15f
Use `thrd_sleep` from MUSL instead of aliasing `nanosleep`
abrown Jul 28, 2022
240c35f
Define `pthread_setcancelstate` in `THREAD_MODEL=posix` builds
abrown Jul 28, 2022
e74d263
Define a Wasm global to store `pthread_self`
abrown Aug 1, 2022
0878de7
Remove `g_needs_dynamic_alloc` global
abrown Aug 1, 2022
db89382
Document the state of pthread support
abrown Aug 1, 2022
53a4091
review: de-duplicate symbols based on #314
abrown Aug 1, 2022
6539705
review: only define `__wasilibc_cwd_{un}lock` when needed
abrown Aug 1, 2022
3784170
review: add #ifdefs to `__pthread_setcancelstate`
abrown Aug 1, 2022
2339e18
review: add additional #ifdefs to `pthread_self.c`
abrown Aug 1, 2022
80d9a43
review: put lock definition behind #ifdef _REENTRANT
abrown Aug 8, 2022
d5bf750
review: remove pthread_setcancelstate.c
abrown Aug 8, 2022
eb50290
review: re-fix indentation
abrown Aug 8, 2022
1d6a27c
review: alias __clock_nanosleep in bottom half
abrown Aug 8, 2022
831de19
review: remove extra line
abrown Aug 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review: de-duplicate symbols based on #314
abrown committed Aug 1, 2022
commit 53a40917f61ce27f2af5a43c8378b102c050ded3
41 changes: 0 additions & 41 deletions expected/wasm32-wasi/posix/defined-symbols.txt
Original file line number Diff line number Diff line change
@@ -77,47 +77,6 @@ __fwritex
__fwriting
__get_locale
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__get_tp
__getdelim
__getentropy
__getopt_msg
15 changes: 0 additions & 15 deletions expected/wasm32-wasi/single/defined-symbols.txt
Original file line number Diff line number Diff line change
@@ -37,9 +37,6 @@ __des_setkey
__do_des
__duplocale
__env_rm_add
__env_rm_add
__env_rm_add
__env_rm_add
__exp2f_data
__exp_data
__expo2
@@ -70,8 +67,6 @@ __fsmu8
__ftello
__ftello_unlocked
__funcs_on_exit
__funcs_on_exit
__funcs_on_quick_exit
__funcs_on_quick_exit
__futimesat
__fwritable
@@ -127,7 +122,6 @@ __isxdigit_l
__lctrans
__lctrans_cur
__lctrans_impl
__lctrans_impl
__ldexp_cexp
__ldexp_cexpf
__lgamma_r
@@ -199,22 +193,16 @@ __sinl
__small_printf
__stderr_FILE
__stderr_used
__stderr_used
__stderr_used
__stdin_FILE
__stdin_used
__stdin_used
__stdio_close
__stdio_exit
__stdio_exit
__stdio_exit_needed
__stdio_read
__stdio_seek
__stdio_write
__stdout_FILE
__stdout_used
__stdout_used
__stdout_used
__stdout_write
__stpcpy
__stpncpy
@@ -312,7 +300,6 @@ __wasilibc_deinitialize_environ
__wasilibc_dttoif
__wasilibc_ensure_environ
__wasilibc_environ
__wasilibc_environ
__wasilibc_fd_renumber
__wasilibc_find_abspath
__wasilibc_find_relpath
@@ -324,7 +311,6 @@ __wasilibc_link
__wasilibc_link_newat
__wasilibc_link_oldat
__wasilibc_maybe_reinitialize_environ_eagerly
__wasilibc_maybe_reinitialize_environ_eagerly
__wasilibc_nocwd___wasilibc_rmdirat
__wasilibc_nocwd___wasilibc_unlinkat
__wasilibc_nocwd_faccessat
@@ -361,7 +347,6 @@ _exit
_flushlbf
_initialize
_start
_start
a64l
abort
abs