ruby-changes:64016
From: Kenta <ko1@a...>
Date: Tue, 8 Dec 2020 15:42:57 +0900 (JST)
Subject: [ruby-changes:64016] bd47a8d660 (master): test/fiddle/helper.rb: remove duplication (#3863)
https://git.ruby-lang.org/ruby.git/commit/?id=bd47a8d660 From bd47a8d660ab33a20c5e28d0effcc29105c434e4 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@u...> Date: Tue, 8 Dec 2020 15:42:31 +0900 Subject: test/fiddle/helper.rb: remove duplication (#3863) diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index 13bd3ed..6d53312 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -55,6 +55,7 @@ when /mingw/, /mswin/ https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L55 crtname = RbConfig::CONFIG["RUBY_SO_NAME"][/msvc\w+/] || 'ucrtbase' libc_so = libm_so = "#{crtname}.dll" when /darwin/ + # macOS 11.0+ removed libSystem.B.dylib from /usr/lib. But It works with dlopen. libc_so = libm_so = "/usr/lib/libSystem.B.dylib" when /kfreebsd/ libc_so = "/lib/libc.so.0.1" @@ -122,11 +123,6 @@ end https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L123 libc_so = nil if !libc_so || (libc_so[0] == ?/ && !File.file?(libc_so)) libm_so = nil if !libm_so || (libm_so[0] == ?/ && !File.file?(libm_so)) -# macOS 11.0+ removed libSystem.B.dylib from /usr/lib. But It works with dlopen. -if RUBY_PLATFORM =~ /darwin/ - libc_so = libm_so = "/usr/lib/libSystem.B.dylib" -end - if !libc_so || !libm_so ruby = EnvUtil.rubybin # When the ruby binary is 32-bit and the host is 64-bit, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/