Merge pull request #6080 from nirvdrum/fix-build-environment

Fix bad mutable call on a frozen string.
This commit is contained in:
Mike McQuaid 2019-05-01 09:31:58 +01:00 committed by GitHub
commit fb1fc0f1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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