Skip to content
Snippets Groups Projects
Commit 1ec1d363 authored by Jack Nagel's avatar Jack Nagel
Browse files

Copy config.log even if the build succeeds

parent 977ae5f2
No related branches found
No related tags found
No related merge requests found
......@@ -260,11 +260,8 @@ class Formula
# we allow formulae to do anything they want to the Ruby process
# so load any deps before this point! And exit asap afterwards
yield self
rescue RuntimeError, SystemCallError
%w(config.log CMakeCache.txt).each do |fn|
(HOMEBREW_LOGS/name).install(fn) if File.file?(fn)
end
raise
ensure
(HOMEBREW_LOGS+name).install Dir["config.log", "CMakeCache.txt"]
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment