add a check that, if we are going to build wasm, wasi-libc is installed on the system

This commit is contained in:
Sylvestre Ledru 2023-11-22 00:29:57 +01:00
parent 789660216a
commit 363182564f
2 changed files with 8 additions and 0 deletions

2
debian/changelog vendored
View File

@ -9,6 +9,8 @@ llvm-toolchain-17 (1:17.0.5-2) UNRELEASED; urgency=medium
* Add a symlink for libc++experimental.a to /usr/lib/*/libc++experimental.a
to fix https://github.com/llvm/llvm-project/issues/72753
* try to relax the wasi-libc dep declaration for apt.llvm.org
* add a check that, if we are going to build wasm, wasi-libc is installed
on the system
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 20 Nov 2023 19:34:35 +0100

6
debian/rules vendored
View File

@ -628,6 +628,12 @@ stamps/preconfigure:
if test "$(LIBCXX_WASM_ENABLE)" = "no"; then \
echo "" > debian/libc++-$(LLVM_VERSION)-dev-wasm32.install; \
echo "" > debian/libc++abi-$(LLVM_VERSION)-dev-wasm32.install; \
else; \
if ! dpkg -l|grep -q wasi-libc; then \
echo "Could not find wasi-libc on the system"; \
echo "Please check that the package is available on the system"; \
exit 1; \
fi; \
fi
# Conditionally enable install clangd grpc files