Detecting Apple Silicon (vs. legacy Intel)

Vincent Habchi vince at macports.org
Sat Jan 1 07:38:19 UTC 2022


Hi Ryan,

> If you were asking how to do this within a Portfile, yes, that's how you would do it. However, note that we don't want any Portfile to use -march flags, no matter what architecture, unless within a variant called "native", since -march flags enable features specific to some processor whereas we want to produce binaries that could run on any processor.

That’s the case (in the ‘qhull’ and ‘gdal’ ports).

Also seizing the opportunity to wish you a terrific year 2022, to you and all the Macports wizards around!

Cheerio,
Vincent



More information about the macports-dev mailing list