Merge pull request #20407 from Homebrew/build-log-ext
formula: append `.log` to formula build log filenames
This commit is contained in:
commit
352cc39523
@ -3067,7 +3067,9 @@ class Formula
|
|||||||
cmd_base: File.basename(cmd).split.first)
|
cmd_base: File.basename(cmd).split.first)
|
||||||
logs.mkpath
|
logs.mkpath
|
||||||
|
|
||||||
File.open(logfn, "w") do |log|
|
# Append `.log` here instead of in the definition of `logfn` to avoid
|
||||||
|
# log files named `xy.cmake.log.cc.log` from `shims/super/cc`.
|
||||||
|
File.open("#{logfn}.log", "w") do |log|
|
||||||
log.puts Time.now, "", cmd, args, ""
|
log.puts Time.now, "", cmd, args, ""
|
||||||
log.flush
|
log.flush
|
||||||
|
|
||||||
|
|||||||
@ -532,7 +532,7 @@ def log(basename, argv, tool, args)
|
|||||||
s << "superenv removed: #{dels.join(" ")}\n" unless dels.empty?
|
s << "superenv removed: #{dels.join(" ")}\n" unless dels.empty?
|
||||||
s << "superenv added: #{adds.join(" ")}\n" unless adds.empty?
|
s << "superenv added: #{adds.join(" ")}\n" unless adds.empty?
|
||||||
s << "superenv executed: #{tool} #{args.join(" ")}\n\n"
|
s << "superenv executed: #{tool} #{args.join(" ")}\n\n"
|
||||||
File.open("#{ENV["HOMEBREW_CC_LOG_PATH"]}.cc", "a+") { |f| f.write(s) }
|
File.open("#{ENV["HOMEBREW_CC_LOG_PATH"]}.cc.log", "a+") { |f| f.write(s) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_superbin_from_path(paths)
|
def remove_superbin_from_path(paths)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user