]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/run-make: enable WITH_SYSTEM_ZSTD on focal 40516/head
authorKefu Chai <kchai@redhat.com>
Wed, 31 Mar 2021 04:27:44 +0000 (12:27 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 31 Mar 2021 05:40:56 +0000 (13:40 +0800)
to speed up the build for "make check"

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f1eda0b99422348865b63826a31f2a6c7078adce)

Conflicts:
debian/control
src/script/run-make.sh: trivial resolution

debian/control
src/script/run-make.sh

index 855e969c846bb1ec8a381e35a596dba96e0213b1..d9bb3755274d3d3490da9973a25fd5f89ab0908e 100644 (file)
@@ -51,6 +51,7 @@ Build-Depends: cmake (>= 3.5),
                libxml2-dev,
                librabbitmq-dev,
                librdkafka-dev,
+# Make-Check   libzstd-dev,
 # Make-Check   libxmlsec1,
 # Make-Check   libxmlsec1-nss,
 # Make-Check   libxmlsec1-openssl,
index d5c2e08e9842b1c423229a28d6f35931e4321a60..9fca631b0b84a070a3398849bc2db4540afe1078 100755 (executable)
@@ -41,6 +41,14 @@ function detect_ceph_dev_pkgs() {
     else
         cmake_opts+=" -DBOOST_J=$(get_processors)"
     fi
+
+    source /etc/os-release
+    if [[ "$ID" == "ubuntu" ]]; then
+        case "$VERSION" in
+            *Focal*)
+                cmake_opts+=" -DWITH_SYSTEM_ZSTD=ON";;
+        esac
+    fi
     echo "$cmake_opts"
 }