Project

General

Profile

Actions

Bug #11800

closed

MakeMakefile breaks with frozen strings

Added by deepj (deepj #) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-12-10 trunk 53017) [x86_64-darwin15]
[ruby-core:72011]

Description

It seems MkConfig(RbConfig) breaks frozen strings mode

/Users/deepj/.rubies/ruby-2.3.0-dev/lib/ruby/2.3.0/mkmf.rb:1292:in `<module:MakeMakefile>': can't modify frozen object (RuntimeError)
	from /Users/deepj/.rubies/ruby-2.3.0-dev/lib/ruby/2.3.0/mkmf.rb:47:in `<top (required)>'
	from /Users/deepj/.rubies/ruby-2.3.0-dev/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /Users/deepj/.rubies/ruby-2.3.0-dev/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from extconf.rb:1:in `<main>'

The problem lies at https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1292

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Status changed from Open to Closed

Applied in changeset r53020.


disable frozen-string-literal

Actions

Also available in: Atom PDF

Like0
Like0