updated ld path

This commit is contained in:
lzhengning 2021-06-11 21:05:04 +08:00
parent 8bf235bb85
commit 9edb1890b6
1 changed files with 3 additions and 1 deletions

View File

@ -920,7 +920,9 @@ if "cc_flags" in os.environ:
link_flags = " -lstdc++ -ldl -shared "
if platform.system() == 'Darwin':
# TODO: if not using apple clang, there is no need to add -lomp
link_flags += "-undefined dynamic_lookup -lomp -L/opt/homebrew/lib"
link_flags += "-undefined dynamic_lookup -lomp "
if platform.machine() == "arm64":
link_flags += " -L/opt/homebrew/lib "
core_link_flags = ""
opt_flags = ""