Detecting Apple Silicon (vs. legacy Intel)

Vincent Habchi vince at
Fri Dec 31 17:50:43 UTC 2021

> On 31 Dec 2021, at 18:36, Chris Jones <jonesc at> wrote:
>> 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.
> if {${os.arch} eq "arm"} {
>> }

Thanks Chris!
Have a great evening and a wonderful 2022 (let’s hope that this sentence still makes sense…)


More information about the macports-dev mailing list