diff options
author | Felix Bùˆnemann <felix.buenemann@gmail.com> | 2020-12-15 20:23:53 +0100 |
---|---|---|
committer | Felix Bùˆnemann <felix.buenemann@gmail.com> | 2020-12-15 20:23:53 +0100 |
commit | 20470b011fe4a5d508f43a634d72bd0e0e73b27d (patch) | |
tree | d55d2cf1489fad8eed399ababded79b61f174f78 /spec | |
parent | a7f4c951f5004c338fbae237bbae69fbb6ca66c6 (diff) | |
download | ffi-20470b011fe4a5d508f43a634d72bd0e0e73b27d.tar.gz |
Fix specs for Ruby 2.x on darwin-arm64
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi/fixtures/compile.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ffi/fixtures/compile.rb b/spec/ffi/fixtures/compile.rb index f816bda..f2e831a 100644 --- a/spec/ffi/fixtures/compile.rb +++ b/spec/ffi/fixtures/compile.rb @@ -23,7 +23,11 @@ module TestLibrary when /ppc|powerpc/ "powerpc" when /^arm/ - "arm" + if RbConfig::CONFIG['host_os'] =~ /darwin/ + "aarch64" + else + "arm" + end else RbConfig::CONFIG['host_cpu'] end |