Adding a --debug flag to the Node formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
elliottcable 2010-08-08 21:08:08 -08:00 committed by Adam Vandenberg
parent dedfcc09fb
commit 2e21fdaaef
1 changed files with 8 additions and 1 deletions

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