prebuilt oneTBB binaries for ARM64 (#16904)

* use oneTBB for arm64

* force THREADING=TBB

* test: remove TBB_DIR for linux arm64

* update linux and mac arm64 packages

* update SHA256

* add comment

* disable add_rpath for tbb libraries on mac arm64

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
This commit is contained in:
Fang XuandChen Peter authored and GitHub committed 2023-04-24 09:48:47 +04:00
1 parent 7997354359
commit 656d7fe380
2 files changed
+33 -1

No files matched your search

+5
View File
@@ -290,6 +290,11 @@ class PrepareLibs(build_clib):
install_dir = os.path.join(install_prefix, install_dir)
# set rpath if applicable
if sys.platform != "win32" and comp_data.get("rpath"):
# after tbb libraries on mac arm64 are signed, setting rpath for them will report error:
# LC_SEGMENT_64 command 3 fileoff field plus filesize field extends past the end of the file
if comp == "tbb_libs" and ARCH == "arm64" and sys.platform == "darwin":
continue
for path in filter(
lambda x: any(item in ([".so"] if sys.platform == "linux" else [".dylib", ".so"])
for item in x.suffixes), Path(install_dir).glob("*"),