mirror of https://github.com/Jittor/Jittor
improve compatibility with miniforge
This commit is contained in:
parent
3e6fb4cad8
commit
a1322782ae
|
@ -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
|
||||
|
|
|
@ -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 = ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue