Skip to content

Conditionally apply AVX2/FMA flags by architecture (fix Apple Silicon build)#590

Open
daphne-cornelisse wants to merge 1 commit into
PufferAI:4.0from
daphne-cornelisse:arm64_fix_build
Open

Conditionally apply AVX2/FMA flags by architecture (fix Apple Silicon build)#590
daphne-cornelisse wants to merge 1 commit into
PufferAI:4.0from
daphne-cornelisse:arm64_fix_build

Conversation

@daphne-cornelisse

Copy link
Copy Markdown
Contributor

Problem

The --mavx2/-mfma flags are hardcoded in SIMD_FLAGS, which fails on arm64 (error: unsupported option '-mavx2' for target 'arm64-apple-darwin').

Solution

We condition the flags on the architecture so x86_64 keeps AVX2/FMA unchanged, and ARM builds skip them.

Verified

Tested using

bash build.sh breakout --local

or --cpu

rendering via

./breakout   

works.

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.

1 participant