MySQL: add debug option

Closes Homebrew/homebrew#14648.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Dan Burkert 2012-09-02 14:19:11 -04:00 committed by Adam Vandenberg
parent 6d55648ce2
commit 8cfea71f78
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class Mysql < Formula
option 'with-archive-storage-engine', 'Compile with the ARCHIVE storage engine enabled'
option 'with-blackhole-storage-engine', 'Compile with the BLACKHOLE storage engine enabled'
option 'enable-local-infile', 'Build with local infile loading support'
option 'with-debug', 'Build with debug support'
conflicts_with 'mariadb',
:because => "mysql and mariadb install the same binaries."
@ -81,6 +82,9 @@ class Mysql < Formula
# Build with local infile loading support
args << "-DENABLED_LOCAL_INFILE=1" if build.include? 'enable-local-infile'
# Build with debug support
args << "-DWITH_DEBUG=1" if build.include? 'with-debug'
system "cmake", *args
system "make"
system "make install"