Skip to content

fix Illegal Hardware Instruction with under Rosetta#327

Merged
miketout merged 12 commits intomiketout:devfrom
DeckerSU:patch-verus-build-mac
Nov 5, 2024
Merged

fix Illegal Hardware Instruction with under Rosetta#327
miketout merged 12 commits intomiketout:devfrom
DeckerSU:patch-verus-build-mac

Conversation

@DeckerSU
Copy link
Copy Markdown

@DeckerSU DeckerSU commented Nov 4, 2024

@DeckerSU DeckerSU closed this Nov 4, 2024
@DeckerSU DeckerSU reopened this Nov 4, 2024
Determine programmatically when a build is running under Rosetta
translation via call the sysctlbyname function with the
sysctl.proc_translated flag. And disable AVX instructions only if
Rosetta build detected.

Apple Silicon CPUs, including the M1, M1 Pro, M1 Max, M1 Ultra, M2,
and subsequent generations, do not support AVX or AVX2 instructions.
@DeckerSU
Copy link
Copy Markdown
Author

DeckerSU commented Nov 4, 2024

DO NOT MERGE, work in progress!

@DeckerSU DeckerSU changed the title build: disable AVX extension on Mac, as Rosetta 2 can't handle it fix Illegal Hardware Instruction with under Rosetta Nov 4, 2024
@miketout miketout merged commit 3552b85 into miketout:dev Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants