Browse Source

threads: change `wasm32-wasi-pthread` to `wasm32-wasi-threads` (#381)

* Change `wasm32-wasi-pthread` to `wasm32-wasi-threads`

After some thought, I think that we should rename the `THREAD_MODEL=posix` build to avoid confusion. Why? Though in this project the use of this target does involve pthreads, it will not be so in other standard libraries or languages (see, e.g., https://github.com/rust-lang/compiler-team/issues/574). I think it would be preferable to emphasize the "threads" Wasm-level proposal and the "wasi-threads" proposal rather than the specific details of which threading API is being exposed.

* fix: rename the `expected` output directory as well
pull/386/head
Andrew Brown 2 years ago
committed by GitHub
parent
commit
4362b1885f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Makefile
  2. 0
      expected/wasm32-wasi-threads/defined-symbols.txt
  3. 0
      expected/wasm32-wasi-threads/include-all.c
  4. 0
      expected/wasm32-wasi-threads/predefined-macros.txt
  5. 0
      expected/wasm32-wasi-threads/undefined-symbols.txt

2
Makefile

@ -38,7 +38,7 @@ TARGET_TRIPLE = wasm32-wasi
# Threaded version necessitates a different traget, as objects from different
# targets can't be mixed together while linking.
ifeq ($(THREAD_MODEL), posix)
TARGET_TRIPLE = wasm32-wasi-pthread
TARGET_TRIPLE = wasm32-wasi-threads
endif
# These variables describe the locations of various files and directories in

0
expected/wasm32-wasi-pthread/defined-symbols.txt → expected/wasm32-wasi-threads/defined-symbols.txt

0
expected/wasm32-wasi-pthread/include-all.c → expected/wasm32-wasi-threads/include-all.c

0
expected/wasm32-wasi-pthread/predefined-macros.txt → expected/wasm32-wasi-threads/predefined-macros.txt

0
expected/wasm32-wasi-pthread/undefined-symbols.txt → expected/wasm32-wasi-threads/undefined-symbols.txt

Loading…
Cancel
Save