Finding the machine CPU arch

Joshua Root jmr at macports.org
Wed Mar 6 07:54:23 PST 2013


On 2013-3-7 02:25 , Vincent Habchi wrote:
> ‘sysctl -n hw.machine’ on Intel gives directly the result (either 'i386' or 'x86_64'). For PPC, I test ‘sysctl -n hw.cpusubtype’ to sort ppc from ppc64. Both work on Tiger and above, so there is no need for a catch block.

If it's used inside a phase, that's true, but if the sysctl is executed
just by parsing the portfile, then you do need to catch it.

- Josh


More information about the macports-dev mailing list