graydon/rust — Issue #1229: OS X Lion's uname -m does not lie
Author: DylanLukes
Created: 2011-11-30 04:22:41+00:00
State: open

The rust configure script does the following check to detect x86_64:

```sh
CFG_OSTYPE=$(uname -s)
CFG_CPUTYPE=$(uname -m)
if [ $CFG_OSTYPE = Darwin -a $CFG_CPUTYPE = i386 ]
then
if sysctl hw.optional.x86_64 | grep ': 1'
...
```

This makes the assumption that OS X is lying about uname -m. Indeed, on earlier versions, it always returns i386. However, on Lion it properly returns x86_64. The second portion of the conditional should be removed probably.