From a04d93acc2da5fa4efb097d42484e1abb62b97c8 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 2 Dec 2010 01:03:55 +0000 Subject: [PATCH] * ext/extmk.rb: define $makeflags.defined? like $mflags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/extmk.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index cc756f54c1..05356b918d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 2 10:01:59 2010 NARUSE, Yui + + * ext/extmk.rb: define $makeflags.defined? like $mflags. + Thu Dec 2 07:20:20 2010 Nobuyoshi Nakada * lib/test/unit.rb (Test::Unit::GCStressOption): --gc-stress diff --git a/ext/extmk.rb b/ext/extmk.rb index d0b0b7f863..f458519cfb 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -299,6 +299,10 @@ def parse_args() grep(/\A#{var}=(.*)/) {return $1} false end + def $makeflags.defined?(var) + grep(/\A#{var}=(.*)/) {return $1} + false + end if $mflags.set?(?n) $dryrun = true