mkmf.rb: Do not modify caller strings
* lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to be modified, in append_{cpp,c,ld}flags respectively. [Fix GH-1246] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7a5bd5903
commit
fdcc924fce
@ -1,3 +1,9 @@
|
|||||||
|
Sun Feb 14 17:31:50 2016 Lars Kanis <lars@greiz-reinsdorf.de>
|
||||||
|
|
||||||
|
* lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to
|
||||||
|
be modified, in append_{cpp,c,ld}flags respectively.
|
||||||
|
[Fix GH-1246]
|
||||||
|
|
||||||
Sun Feb 14 16:18:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Feb 14 16:18:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (setup_exception): set the cause only if it is explicitly
|
* eval.c (setup_exception): set the cause only if it is explicitly
|
||||||
|
@ -603,7 +603,7 @@ MSG
|
|||||||
|
|
||||||
def with_cppflags(flags)
|
def with_cppflags(flags)
|
||||||
cppflags = $CPPFLAGS
|
cppflags = $CPPFLAGS
|
||||||
$CPPFLAGS = flags
|
$CPPFLAGS = flags.dup
|
||||||
ret = yield
|
ret = yield
|
||||||
ensure
|
ensure
|
||||||
$CPPFLAGS = cppflags unless ret
|
$CPPFLAGS = cppflags unless ret
|
||||||
@ -625,7 +625,7 @@ MSG
|
|||||||
|
|
||||||
def with_cflags(flags)
|
def with_cflags(flags)
|
||||||
cflags = $CFLAGS
|
cflags = $CFLAGS
|
||||||
$CFLAGS = flags
|
$CFLAGS = flags.dup
|
||||||
ret = yield
|
ret = yield
|
||||||
ensure
|
ensure
|
||||||
$CFLAGS = cflags unless ret
|
$CFLAGS = cflags unless ret
|
||||||
@ -647,7 +647,7 @@ MSG
|
|||||||
|
|
||||||
def with_ldflags(flags)
|
def with_ldflags(flags)
|
||||||
ldflags = $LDFLAGS
|
ldflags = $LDFLAGS
|
||||||
$LDFLAGS = flags
|
$LDFLAGS = flags.dup
|
||||||
ret = yield
|
ret = yield
|
||||||
ensure
|
ensure
|
||||||
$LDFLAGS = ldflags unless ret
|
$LDFLAGS = ldflags unless ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user