diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-16 19:48:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 19:48:41 +0100 |
commit | e3f2cf9b82055709ddbeecbf77810f43438c4b64 (patch) | |
tree | d55d2cf1489fad8eed399ababded79b61f174f78 | |
parent | a7f4c951f5004c338fbae237bbae69fbb6ca66c6 (diff) | |
parent | 20470b011fe4a5d508f43a634d72bd0e0e73b27d (diff) | |
download | ffi-e3f2cf9b82055709ddbeecbf77810f43438c4b64.tar.gz |
Merge pull request #854 from felixbuenemann/fix-darwin-arm64-specs
Fix specs for Ruby 2.x on darwin-arm64
-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 |