Re: Detect Intel System?
Re: Detect Intel System?
- Subject: Re: Detect Intel System?
- From: Peter Speck <email@hidden>
- Date: Fri, 6 Aug 2010 17:07:08 +0200
On 06/08/2010, at 16:49, François Revol wrote:
> Alternatively it might be possible to parse the output of file on /bin/sh, here it gives:
>
> $ file /bin/sh
> /bin/sh: Mach-O universal binary with 2 architectures
> /bin/sh (for architecture x86_64): Mach-O 64-bit executable x86_64
> /bin/sh (for architecture i386): Mach-O executable i386
That only tells what's installed, but not which binaries the platform is able to execute. Lack of ppc here is probably due to the OS being 10.6
10.5 has the simple "arch" command which can only tell which platform it is. 10.6 (which doesn't support ppc) is able to execute a binary using a specific arch, e.g. "arch -i386 /usr/bin/true"
----
- Peter Speck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden