44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 14b5ef92c2d3e9c9ffda1938ce9640b9f3698ddc Mon Sep 17 00:00:00 2001
|
|
From: Hongtao Zhang <zhanghongtao22@huawei.com>
|
|
Date: Tue, 20 Feb 2024 20:20:07 +0800
|
|
Subject: [PATCH] Add without ISA-L option and disabled by default
|
|
|
|
---
|
|
configure | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/configure b/configure
|
|
index ed91a3d..86a6ab3 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -130,6 +130,7 @@ function usage() {
|
|
echo " --without-avahi No path required."
|
|
echo " --with-golang Build with components written in Go"
|
|
echo " --without-golang No path required."
|
|
+ echo " --without-isal Build with ISAL-L. DIsabled by default"
|
|
echo ""
|
|
echo "Environment variables:"
|
|
echo ""
|
|
@@ -674,6 +675,9 @@ for i in "$@"; do
|
|
CONFIG[MAX_LCORES]="${i#*=}"
|
|
CONFIG["MAX_LCORES"]=${CONFIG["MAX_LCORES"],,}
|
|
;;
|
|
+ --without-isal)
|
|
+ CONFIG[ISAL]=n
|
|
+ ;;
|
|
--)
|
|
break
|
|
;;
|
|
@@ -1173,7 +1177,7 @@ if [[ "${CONFIG[FUZZER]}" = "y" && "$CC_TYPE" != "clang" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
-if [[ $arch == x86_64* ]] || [[ $arch == aarch64* ]]; then
|
|
+if [[ "${CONFIG[ISAL]}" != "n" ]] && ([[ $arch == x86_64* ]] || [[ $arch == aarch64* ]]); then
|
|
CONFIG[ISAL]=y
|
|
# make sure the submodule is initialized
|
|
if [ ! -f "$rootdir"/isa-l/autogen.sh ]; then
|
|
--
|
|
2.23.0
|
|
|