From b8b3589f59b404d773a5705412e4c32885477314 Mon Sep 17 00:00:00 2001 From: Amos Elberg Date: Fri, 15 Jan 2021 10:36:58 -0800 Subject: [PATCH] use patch to fix compilation on Apple Silicon --- src/tbb/build/macos.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/tbb/build/macos.inc b/src/tbb/build/macos.inc index 8df5bbda..b22828d6 100644 --- a/src/tbb/build/macos.inc +++ b/src/tbb/build/macos.inc @@ -40,10 +40,14 @@ ifndef arch export arch:=ppc32 endif else - ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1) - export arch:=intel64 + ifeq ($(shell /usr/sbin/sysctl -n hw.machine),arm64) + export arch:=arm64 else - export arch:=ia32 + ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1) + export arch:=intel64 + else + export arch:=ia32 + endif endif endif endif