From 363182564fde6bf322ca81c571ac070a7ba2d90e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 22 Nov 2023 00:29:57 +0100 Subject: [PATCH] add a check that, if we are going to build wasm, wasi-libc is installed on the system --- debian/changelog | 2 ++ debian/rules | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index c19414ca..ab4a95bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 20 Nov 2023 19:34:35 +0100 diff --git a/debian/rules b/debian/rules index 3a3c8039..6a8accb3 100755 --- a/debian/rules +++ b/debian/rules @@ -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