Skip to content

Commit c0a82ba

Browse files
authored
Merge pull request #148 from elbamos/feature/osx_arm64
Fix compilation on Apple Silicon
2 parents a64840e + b8b3589 commit c0a82ba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tbb/build/macos.inc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ ifndef arch
4040
export arch:=ppc32
4141
endif
4242
else
43-
ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1)
44-
export arch:=intel64
43+
ifeq ($(shell /usr/sbin/sysctl -n hw.machine),arm64)
44+
export arch:=arm64
4545
else
46-
export arch:=ia32
46+
ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1)
47+
export arch:=intel64
48+
else
49+
export arch:=ia32
50+
endif
4751
endif
4852
endif
4953
endif

0 commit comments

Comments
 (0)