aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDan Burkert2012-09-02 14:19:11 -0400
committerAdam Vandenberg2012-09-02 12:28:11 -0700
commitbcac733e2cfb3a90fd755bd97f4f906117c51d95 (patch)
tree177a5844ac004c8cc525f93acd9d83451b99ce8f /Library
parent89e11160982b11a5fcedc5f62fb1658b3f5c722b (diff)
downloadhomebrew-bcac733e2cfb3a90fd755bd97f4f906117c51d95.tar.bz2
MySQL: add debug option
Closes #14648. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mysql.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index e8d026563..19a848aef 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -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"