fix: change Abseil to shared library to solve macos compilation issue (#28986)

fix the compilation error on macos 14.0 with x86 arch processor
related to #28985

Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
pull/29125/head
Xiaofan 2023-12-11 21:54:37 +08:00 committed by GitHub
parent 3c32ba2407
commit 9d54d6f590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class MilvusConan(ConanFile):
"google-cloud-cpp/2.5.0@milvus/dev",
"opentelemetry-cpp/1.8.1.1@milvus/dev",
"librdkafka/1.9.1",
"abseil/20230125.3"
)
generators = ("cmake", "cmake_find_package")
default_options = {
@ -79,7 +80,8 @@ class MilvusConan(ConanFile):
# Macos M1 cannot use jemalloc
if self.settings.arch not in ("x86_64", "x86"):
del self.options["folly"].use_sse4_2
# By default abseil use static link but can not be compatible with macos X86
self.options["abseil"].shared = True
self.options["arrow"].with_jemalloc = False
if self.settings.arch == "armv8":
self.options["openblas"].dynamic_arch = False