mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* wrong regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86c90aea36
commit
5ec897d306
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ getopts('', 'extstatic', 'make:', 'make-flags:')
|
||||||
$force_static = $OPT['extstatic'] == 'static'
|
$force_static = $OPT['extstatic'] == 'static'
|
||||||
$make = $OPT['make'] || $make
|
$make = $OPT['make'] || $make
|
||||||
$mflags = Shellwords.shellwords($OPT['make-flags'] || "")
|
$mflags = Shellwords.shellwords($OPT['make-flags'] || "")
|
||||||
$mflags[0].sub!(/^[^-]/, '-\&') unless $mflags.empty?
|
$mflags[0].sub!(/^\w+$/, '-\&') unless $mflags.empty?
|
||||||
$make, *$mflags[0, 0] = Shellwords.shellwords($make)
|
$make, *$mflags[0, 0] = Shellwords.shellwords($make)
|
||||||
|
|
||||||
mflags = $mflags.grep(/^-([^-].*)/) {$1}.join
|
mflags = $mflags.grep(/^-([^-].*)/) {$1}.join
|
||||||
|
|
Loading…
Add table
Reference in a new issue