Adding a --debug flag to the Node formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
dedfcc09fb
commit
2e21fdaaef
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue