1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/fiddle/extconf.rb: remove ffitarget.h generated by configure on

mswin, because it's not normal file (cygwin's symlink) and have
  system attribute.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2014-12-24 00:36:42 +00:00
parent 7a0676e8a5
commit a54aae45a6
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Wed Dec 24 09:35:11 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/fiddle/extconf.rb: remove ffitarget.h generated by configure on
mswin, because it's not normal file (cygwin's symlink) and have
system attribute.
Wed Dec 24 05:40:52 2014 NARUSE, Yui <naruse@ruby-lang.org>
* tool/downloader.rb: support ruby 1.8.

View file

@ -78,6 +78,9 @@ begin
system(*args, chdir: libffi.dir) or
raise "failed to configure libffi. Please install libffi."
end
if $mswin && File.file?("#{libffi.include}/ffitarget.h")
FileUtils.rm_f("#{libffi.include}/ffitarget.h")
end
unless File.file?("#{libffi.include}/ffitarget.h")
FileUtils.cp("#{srcdir}/src/x86/ffitarget.h", libffi.include, preserve: true)
end