Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0a82ba

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

File tree

1 file changed

+7
-3
lines changed
Filter options

1 file changed

+7
-3
lines changed

‎src/tbb/build/macos.inc

Copy file name to clipboardExpand all lines: src/tbb/build/macos.inc
+7-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.