Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ffi/ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Jul 17, 2020
2 parents dc35a8f + 3c35515 commit d15fa06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions lib/ffi/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ module Platform
"powerpc"
when /sparcv9|sparc64/
"sparcv9"
when /arm64|aarch64/ # MacOS calls it "arm64", other operating systems "aarch64"
"aarch64"
when /^arm/
"arm"
else
case RbConfig::CONFIG['host_cpu']
when /^arm/
"arm"
else
RbConfig::CONFIG['host_cpu']
end
RbConfig::CONFIG['host_cpu']
end

private
Expand Down
3 changes: 1 addition & 2 deletions spec/ffi/fork_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))

# Skip platforms that don't implement Process.fork
unless RUBY_ENGINE == "truffleruby" or FFI::Platform.windows?
if Process.respond_to?(:fork)
describe "Callback in conjunction with fork()" do

module LibTest
Expand Down

0 comments on commit d15fa06

Please sign in to comment.