diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2012-07-29 16:47:31 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2012-07-29 16:47:31 +1000 |
commit | 7bfaefba480acb9366450e8639aeeb9e1e597605 (patch) | |
tree | b9c76e748de80e7f8cc1abd034f3c682ab65b625 | |
parent | 3339c8fb3f50323681a01164e534e329e3bd9572 (diff) | |
download | ffi-7bfaefba480acb9366450e8639aeeb9e1e597605.tar.gz |
Try to normalize arm* to "arm"
-rw-r--r-- | Rakefile | 5 | ||||
-rw-r--r-- | lib/ffi/platform.rb | 7 |
2 files changed, 10 insertions, 2 deletions
@@ -40,6 +40,9 @@ CPU = case RbConfig::CONFIG['host_cpu'].downcase when /ppc|powerpc/ "powerpc" + when /^arm/ + "arm" + else RbConfig::CONFIG['host_cpu'] end @@ -74,7 +77,7 @@ PROJ.name = 'ffi' PROJ.authors = 'Wayne Meissner' PROJ.email = 'wmeissner@gmail.com' PROJ.url = 'http://wiki.github.com/ffi/ffi' -PROJ.version = '1.1.1' +PROJ.version = '1.1.2.dev' PROJ.rubyforge.name = 'ffi' PROJ.readme_file = 'README.rdoc' diff --git a/lib/ffi/platform.rb b/lib/ffi/platform.rb index 4021733..847f149 100644 --- a/lib/ffi/platform.rb +++ b/lib/ffi/platform.rb @@ -51,7 +51,12 @@ module FFI when /ppc|powerpc/ "powerpc" else - RbConfig::CONFIG['host_cpu'] + case RbConfig::CONFIG['host_cpu'] + when /^arm/ + "arm" + else + RbConfig::CONFIG['host_cpu'] + end end private |