Skip to content

Commit

Permalink
Solve the problem of not being able to compile on macos system (#241)
Browse files Browse the repository at this point in the history
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
  • Loading branch information
junjiejiangjjj authored Dec 25, 2024
1 parent 4ebd1da commit 6a06843
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class MilvusLiteConan(ConanFile):
"gtest:build_gmock": False,
"onetbb:tbbmalloc": False,
"onetbb:tbbproxy": False,
"onetbb:tbbbind": False,
"boost:without_locale": True,
"boost:without_test": True,
"boost:without_stacktrace": True,
Expand Down Expand Up @@ -74,6 +73,10 @@ def configure(self):
if self.settings.compiler.libcxx == "libstdc++":
raise Exception("This package is only compatible with libstdc++11")

def config_options(self):
if self.settings.os != "Macos":
self.options["onetbb"].tbbbind = False

def requirements(self):
if self.settings.os not in ["Macos", "Android"]:
self.requires("libunwind/1.7.2")
Expand Down

0 comments on commit 6a06843

Please sign in to comment.