danlucraft/swt — pull request #3 by wasnotrice (2012-09-11 04:52:14+00:00)
Title: Recognize 'amd64' arch on OS X

After I upgraded to Mountain Lion, my swt started to fail under jruby-1.6.7, because it was trying to load the 32-bit jar. This fix allows the loader to recognize 'amd64' as well as 'x86_64' for the 'host_cpu' string.

Here's how my 'host_cpu' looks:

```
$ rvm use jruby-1.6.7
Using /Users/eric/.rvm/gems/jruby-1.6.7
$ irb
jruby-1.6.7 :001 > Config::CONFIG['host_cpu']
=> "amd64"
jruby-1.6.7 :002 > quit
$ rvm use jruby-1.7.0.preview2
Using /Users/eric/.rvm/gems/jruby-1.7.0.preview2
$ irb
jruby-1.7.0.preview2 :001 > Config::CONFIG['host_cpu']
(irb):1: Use RbConfig instead of obsolete and deprecated Config.
=> "x86_64"
jruby-1.7.0.preview2 :002 > quit
$
```