improve compatibility with miniforge

This commit is contained in:
lzhengning 2022-04-25 12:48:32 +08:00
parent 3e6fb4cad8
commit a1322782ae
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.3.3.10'
__version__ = '1.3.3.11'
from jittor_utils import lock
with lock.lock_scope():
ori_int = int

View File

@ -1033,8 +1033,10 @@ cc_flags += " -lstdc++ -ldl -shared "
if platform.system() == 'Darwin':
# TODO: if not using apple clang, there is no need to add -lomp
cc_flags += "-undefined dynamic_lookup -lomp "
if os.environ.get('CONDA_PREFIX', None):
cc_flags += f" -L{os.path.join(os.environ['CONDA_PREFIX'], 'lib')} "
if platform.machine() == "arm64":
cc_flags += " -L/opt/homebrew/lib "
cc_flags += " -L/opt/homebrew/lib "
opt_flags = ""