summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2020-12-16 19:48:41 +0100
committerGitHub <noreply@github.com>2020-12-16 19:48:41 +0100
commite3f2cf9b82055709ddbeecbf77810f43438c4b64 (patch)
treed55d2cf1489fad8eed399ababded79b61f174f78
parenta7f4c951f5004c338fbae237bbae69fbb6ca66c6 (diff)
parent20470b011fe4a5d508f43a634d72bd0e0e73b27d (diff)
downloadffi-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.rb6
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