Finding the machine CPU arch

Joshua Root jmr at macports.org
Wed Mar 6 06:52:32 PST 2013


On 2013-3-7 00:29 , Vincent Habchi wrote:
> Hi everybody,
> 
> is there a variable that gives the type of the processor Macports is running on? ${os.arch} does not discriminate between i386 and x86_64. Anything more precise?

Well, build_arch tells you what kind of processor the user wants you to
build for. In general you can't assume that the CPU you're building on
is the one that you will run on.

- Josh


More information about the macports-dev mailing list