Detecting Apple Silicon (vs. legacy Intel)

Vincent Habchi vince at macports.org
Fri Dec 31 13:10:09 UTC 2021


Folks,

finally put my hands on my brand new MacBook Pro 14”! (Well, not really mine, rather my company’s, but let’s pretend…)

I was wondering if there is a simple scheme to detect on which type of architecture MacPorts is running. My problem here is that clang on M1 does not honour the -march flag and exits with an error.

Thanks and early happy new year to all!

Vincent



More information about the macports-dev mailing list