fastports

libcxx 19.1.7_2

devel/wasi-libcxx19

C++ standard library for WebAssembly System Interface

Category
devel
Maintainer
vishwin@FreeBSD.org
WWW
https://llvm.org/
License
LLVM2
USES
cmake tar:xz llvm:19

Dependencies

Commit History

may be incomplete — full history at freebsd-ports on GitHub

Commit Credits Log message
19.1.7
7c5b2039a4 files touched
Charlie Li (vishwin)
wasi: consistently use the wasm32-wasip1 triple
The WebAssembly community have reclaimed wasm32-wasi, without suffix,
for a future WASI 1.0 standard. The first version of WASI, 0.1, is
now wasm32-wasip1 in triple form, WASI 0.2 is wasm32-wasip2, etc.
Starting LLVM 22 the non-suffixed form is deprecated, aligning with
Rust and Go:

https://github.com/llvm/llvm-project/issues/165344
https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets/

The Mozilla build system's WASI checks always pass -Werror so
configure fails when the non-suffixed target/triple is passed using
LLVM 22:

Using wasi sysroot in /usr/local/share/wasi-sysroot
checking for the wasm C compiler... /usr/local/bin/clang22
checking whether the wasm C compiler can be used... yes
checking the wasm C compiler version... 22.1.0
checking the wasm C compiler works... yes
checking the wasm C compiler can find wasi headers... yes
checking the wasm C linker can find wasi libraries... yes
checking for the wasm C++ compiler... /usr/local/bin/clang++22
checking whether the wasm C++ compiler can be used... yes
checking the wasm C++ compiler version... 22.1.0
checking the wasm C++ compiler works... yes
checking the wasm C++ compiler can find wasi headers... yes
checking the wasm C++ linker can find wasi libraries... yes
checking for clock() in wasi sysroot... no
checking for emulated clock() in wasi sysroot...
DEBUG: Creating `/tmp/conftest0vk5p554.c` with content:
DEBUG: | #include <time.h>
DEBUG: | int
DEBUG: | main(void)
DEBUG: | {
DEBUG: | clock();
DEBUG: |   ;
DEBUG: |   return 0;
DEBUG: | }
DEBUG: Executing: `/usr/local/bin/clang22 --target=wasm32-wasi /tmp/conftest0vk5p554.c -Werror -D_WASI_EMULATED_PROCESS_CLOCKS -lwasi-emulated-process-clocks --sysroot=/usr/local/share/wasi-sysroot`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | clang: error: argument '--target=wasm32-wasi' is deprecated, use --target=wasm32-wasip1 instead [-Werror,-Wdeprecated]
ERROR: Can't find clock() in wasi sysroot.

Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=2023597

Bump all WASI ports for the new triple. Adjust consumers accordingly
but do not bump, since non-suffixed and p1 are identical as a
transition measure.
19.1.7
3cdf07363a files touched
Charlie Li (vishwin)
wasi: update to sdk-31
- switch to cmake
- stop copying std{arg,def}.h from devel/llvm, not needed
- sync libcxx CMAKE_ARGS
- bump all existing libcxx
19.1.7
202fbacfe2 files touched
Charlie Li (vishwin)
devel/wasi-libcxx: cosmetic changes to prepare for devel/wasi-libc update
Use ${TRIPLE} more:
- reference <stdlib.h> from ${WASI_SYSROOT} for the devel/wasi-libc line
- add PLIST_SUB
19.1.7
b2ce97c92a files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: sync to 19.1.7
19.1.6
f2eabbcb96 files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: sync to 19.1.6
19.1.5
d19296a2b8 files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: sync to 19.1.5
19.1.4
f8250d7809 files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: sync to 19.1.4
19.1.3
d9591c84db files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: sync to 19.1.3
19.1.2
d978c39e64 files touched
Charlie Li (vishwin)
devel/wasi-{compiler-rt,libcxx}19: add