mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9ddeb957fd
commit
a77fb26da8
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue