aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-13 10:05:55 -0500
committerJack Nagel2014-03-13 10:05:57 -0500
commitd965bbba4753a92512f2cb136a29e90bf6199e1f (patch)
tree90ad3b7d3283f8dfe74a856be242be069859e570 /Library/Homebrew/build.rb
parent7dcb54a96314622c8319b8aa2a6669b778f87493 (diff)
downloadbrew-d965bbba4753a92512f2cb136a29e90bf6199e1f.tar.bz2
Allow the debugger to work from inside staged resources
References Homebrew/homebrew#23263. Closes Homebrew/homebrew#27445.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 2d2bb861a..985d0bae4 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -167,6 +167,8 @@ class Build
else
f.prefix.mkpath
+ f.resources.each { |r| r.extend(ResourceDebugger) } if ARGV.debug?
+
begin
f.install