Re: Detect Intel System?
Re: Detect Intel System?
- Subject: Re: Detect Intel System?
- From: Peter Speck <email@hidden>
- Date: Fri, 6 Aug 2010 16:43:20 +0200
On 06/08/2010, at 14:40, Shantonu Sen wrote:
> Our product does not run on PPC hardware. The installer installation check script checks if the current hardware is Intel in order to continue.
If Apple switches to another platform, but provides a Rosetta that makes it possible to run Intel apps on the new platform, would this new platform be acceptable?
If it is, you could simply test if the host is able to execute x86 binaries instead of looking at sysctl. In the perl script, embed the hexdump of the simplest C app and unpack("H*", $_) it into a file, set the execute bit, and then check the result value of system(("/path/to/executable")).
Compiling "int main() { return 0; }" creates a ~8KB binary.
----
- 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