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

ruby-changes:53558

From: nobu <ko1@a...>
Date: Sat, 17 Nov 2018 10:42:34 +0900 (JST)
Subject: [ruby-changes:53558] nobu:r65774 (trunk): test/mkmf/base.rb: use CC_WRAPPER same as the toplevel

nobu	2018-11-17 10:42:30 +0900 (Sat, 17 Nov 2018)

  New Revision: 65774

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

  Log:
    test/mkmf/base.rb: use CC_WRAPPER same as the toplevel

  Modified files:
    trunk/test/mkmf/base.rb
Index: test/mkmf/base.rb
===================================================================
--- test/mkmf/base.rb	(revision 65773)
+++ test/mkmf/base.rb	(revision 65774)
@@ -1,5 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/test/mkmf/base.rb#L1
 # frozen_string_literal: false
 $extmk = true
+require 'rbconfig'
+RbConfig.fire_update!("top_srcdir", File.expand_path("../..", __dir__))
+File.foreach(RbConfig::CONFIG["topdir"]+"/Makefile") do |line|
+  if /^CC_WRAPPER\s*=\s*/ =~ line
+    RbConfig.fire_update!('CC_WRAPPER', $'.strip)
+    break
+  end
+end
 
 require 'test/unit'
 require 'mkmf'

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

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