[前][次][番号順一覧][スレッド一覧]

ruby-changes:44750

From: nobu <ko1@a...>
Date: Fri, 18 Nov 2016 13:34:37 +0900 (JST)
Subject: [ruby-changes:44750] nobu:r56822 (trunk): extmk.rb: removed compiled? method [ci skip]

nobu	2016-11-18 13:34:26 +0900 (Fri, 18 Nov 2016)

  New Revision: 56822

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56822

  Log:
    extmk.rb: removed compiled? method [ci skip]
    
    * ext/extmk.rb (compiled?): removed.
    
    * ext/win32/extconf.rb: try to install libraries regardless
      fiddle.

  Modified files:
    trunk/ext/extmk.rb
    trunk/ext/win32/extconf.rb
Index: ext/win32/extconf.rb
===================================================================
--- ext/win32/extconf.rb	(revision 56821)
+++ ext/win32/extconf.rb	(revision 56822)
@@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/win32/extconf.rb#L1
 # frozen_string_literal: false
-if compiled?('fiddle') and $mswin||$mingw||$cygwin
+if $mswin||$mingw||$cygwin
   create_makefile('win32')
 end
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 56821)
+++ ext/extmk.rb	(revision 56822)
@@ -26,7 +26,6 @@ alias $PROGRAM_NAME $0 https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L26
 alias $0 $progname
 
 $extlist = []
-$compiled = {}
 
 DUMMY_SIGNATURE = "***DUMMY MAKEFILE***"
 
@@ -167,7 +166,6 @@ def extmake(target, basedir = (maybestat https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L166
     $objs = []
     $srcs = []
     $extso = []
-    $compiled[target] = false
     makefile = "./Makefile"
     static = $static
     $static = nil if noinstall = File.fnmatch?("-*", target)
@@ -277,7 +275,6 @@ def extmake(target, basedir = (maybestat https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L275
     unless $configure_only or system($make, *args)
       $ignore or $continue or return false
     end
-    $compiled[target] = true
     if $clean
       FileUtils.rm_f("mkmf.log")
       if $clean != true
@@ -325,10 +322,6 @@ def extmake(target, basedir = (maybestat https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L322
   true
 end
 
-def compiled?(target)
-  $compiled[target]
-end
-
 def parse_args()
   $mflags = []
   $makeflags = [] # for make command to build ruby, so quoted

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]