Correct ARCHFLAGS value on Apple Silicon?

Viewed 1936

On my previous, Intel-based Mac, I used to include

export ARCHFLAGS="-arch x86_64"

in my shell resource file. What's the correct compilation flag on the new ARM-based Apple silicon? arm? arm64? arm-64? arm_64? There doesn't seem to be a lot of resources out there yet, any pointers greatly appreciated!

1 Answers

There's a long discussion over here on this topic. Long story short, they're agreeing on trusting uname -m to provide the correct architecture name.

This returns arm64, and given lack of evidence to the contrary, is probably the correct value.

Related