Adding a --debug flag to the Node formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
elliottcable 2010-08-08 21:08:08 -08:00 committed by Adam Vandenberg
parent dedfcc09fb
commit 2e21fdaaef

View file

@ -9,6 +9,10 @@ class Node <Formula
# Stripping breaks dynamic loading
skip_clean :all
def options
[["--debug", "Build with debugger hooks."]]
end
def install
fails_with_llvm
@ -17,7 +21,10 @@ class Node <Formula
s.gsub! '/opt/local/lib', '/usr/lib'
end
system "./configure", "--prefix=#{prefix}"
args = ["--prefix=#{prefix}"]
args << "--debug" if ARGV.include? '--debug'
system "./configure", *args
system "make install"
end
end