Merge pull request #6080 from nirvdrum/fix-build-environment
Fix bad mutable call on a frozen string.
This commit is contained in:
commit
fb1fc0f1b1
@ -56,11 +56,12 @@ module Homebrew
|
||||
|
||||
keys.each do |key|
|
||||
value = env[key]
|
||||
s = "#{key}: #{value}"
|
||||
s = +"#{key}: #{value}"
|
||||
case key
|
||||
when "CC", "CXX", "LD"
|
||||
s << " => #{Pathname.new(value).realpath}" if File.symlink?(value)
|
||||
end
|
||||
s.freeze
|
||||
f.puts s
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user