The LLVM Project is a collection of modular and reusable compiler and
toolchain technologies.
This port includes Clang builting for WASI
(WebAssembly System Interface).
Revert "devel/wasi-libcxx: Fix compiler flag checks when cross-building"
Does not qualify for portmgr blanket.
This reverts commit 298fc1dd10db2931e4958ca03a5d71c7789231f5.
PR: 298849
devel/wasi-libcxx: Fix compiler flag checks when cross-building
Set CMAKE_TRY_COMPILE_TARGET_TYPE to STATIC_LIBRARY so CMake compiler
flag checks do not attempt to link WASI executables against libc++ and
libc++abi while those libraries are still being built.
The failed link tests caused CMake to incorrectly reject
-fno-exceptions. This produced a libc++abi archive with unresolved
references to __cxa_allocate_exception and __cxa_throw despite exception
support being disabled.
This fixes build of wasi-libcxx consumers, e.g. www/firefox on aarch64
Bump PORTREVISION for all wasi-libcxx* slave ports.
PR: 298849
Approved by: portmgr blanket
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/165344https://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:
(Only the first 15 lines of the commit message are shown above )
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