ruby-changes:73426
From: Takashi <ko1@a...>
Date: Mon, 5 Sep 2022 15:25:53 +0900 (JST)
Subject: [ruby-changes:73426] d77c037a16 (master): Automatically detect 64bit platforms
https://git.ruby-lang.org/ruby.git/commit/?id=d77c037a16 From d77c037a16e524acf3804f484b6d2c231e3c3880 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 4 Sep 2022 23:25:26 -0700 Subject: Automatically detect 64bit platforms --- mjit_compiler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjit_compiler.rb b/mjit_compiler.rb index 1255adb71c..148b200200 100644 --- a/mjit_compiler.rb +++ b/mjit_compiler.rb @@ -3,12 +3,12 @@ https://github.com/ruby/ruby/blob/trunk/mjit_compiler.rb#L3 if RubyVM::MJIT.enabled? begin require 'etc' + require 'fiddle' rescue LoadError return # skip miniruby end - case RUBY_PLATFORM.split('-', 2).first - when 'x86_64', 'aarch64', 'arm64', 's390x' + if Fiddle::SIZEOF_VOIDP == 8 require 'mjit/c_64' else require 'mjit/c_32' -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/