aboutsummaryrefslogtreecommitdiffstats
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
commite7e55f71e4545a6538ba7062d1c5c3f75971c864 (patch)
tree204e55b13e60e2a9445a627c4710ae08bb9baeb6 /test/fiddle
parent2aec9ce09796b220e089c881f32f2b624e166192 (diff)
downloadruby-e7e55f71e4545a6538ba7062d1c5c3f75971c864.tar.gz
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"