summaryrefslogtreecommitdiff
path: root/test/fiddle
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-21 00:20:53 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-21 00:20:53 +0000
commita77fb26da8a98b21a7d160f66d74435934910f74 (patch)
tree204e55b13e60e2a9445a627c4710ae08bb9baeb6 /test/fiddle
parent9ddeb957fd99115496bc6d676f7e2ec479739576 (diff)
Visual C++ 14 (2015) uses ucrtbase.dll as c runtime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle')
-rw-r--r--test/fiddle/helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index bc98f858ba..e98eecc198 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -26,7 +26,8 @@ when /linux/
libm_so = File.join(libdir, "libm.so.6")
when /mingw/, /mswin/
require "rbconfig"
- libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll"
+ crtname = RbConfig::CONFIG["RUBY_SO_NAME"][/^msvc\w+/] || 'ucrtbase'
+ libc_so = libm_so = "#{crtname}.dll"
when /darwin/
libc_so = "/usr/lib/libc.dylib"
libm_so = "/usr/lib/libm.dylib"