aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-10-30 16:14:51 -0400
committerMike McQuaid2016-10-30 16:14:51 -0400
commit3396d479d2cc87fed0f9a74f711881ea1784e0d6 (patch)
treed0f930992671488482207dd77f22ae7841c2fa8e /Library/Homebrew/build.rb
parent0c140f0970c4d4de81e8233913daa7fc768defad (diff)
downloadbrew-3396d479d2cc87fed0f9a74f711881ea1784e0d6.tar.bz2
build: write options to file.
These can be useful for later inspection or upload by `gist-logs` if there's a failed install and it's unclear from logs alone what options were used.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index d3c2833d4..c4e903642 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -132,6 +132,8 @@ class Build
else
formula.prefix.mkpath
+ (formula.logs/"00.options.out").write \
+ "#{formula.full_name} #{formula.build.used_options.sort.join(" ")}".strip
formula.install
stdlibs = detect_stdlibs(ENV.compiler)