Chris Angelico writes:
But my point is that the architecture is right there in the name, so you can save yourself the trouble and just use what comes from uname directly.
Except you probably can't. "x64" != "x86_64". (The latter is what my Intel Mac says; don't have a 64-bit machine with win32 on it handy.)