From 70169700c305ee72aa72c7a0786303ae58740f17 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 30 Oct 2023 06:58:16 +0530 Subject: [PATCH] Try to improve couchbase compilation --- src/scripts/extensions/couchbase.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/extensions/couchbase.sh b/src/scripts/extensions/couchbase.sh index 262a854c..07bb2e00 100644 --- a/src/scripts/extensions/couchbase.sh +++ b/src/scripts/extensions/couchbase.sh @@ -55,6 +55,9 @@ add_couchbase() { else if [ "$ext" = "couchbase" ]; then ext="couchbase-$(get_pecl_version "couchbase" "stable")" + n_proc="$(nproc)" + export COUCHBASE_SUFFIX_OPTS="CMAKE_BUILD_TYPE=Release" + export CMAKE_BUILD_PARALLEL_LEVEL="$n_proc" add_extension_from_source couchbase https://pecl.php.net couchbase couchbase "${ext##*-}" extension pecl >/dev/null 2>&1 else pecl_install "${ext}" >/dev/null 2>&1