mysql: compile with readline by default
MySQL client compiles with EditLine wrapper by default. This formula configures the build to use readline since it's superior in handling multibyte input, enabling use of non-English languages in the mysql prompt. Users can still choose to use EditLine with the `--with-libedit` flag. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
8162c6aa38
commit
9d3ef67239
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ class Mysql < Formula
|
|||
[
|
||||
['--with-tests', "Build with unit tests."],
|
||||
['--with-embedded', "Build the embedded server."],
|
||||
['--with-libedit', "Compile with EditLine wrapper instead of readline"],
|
||||
['--universal', "Make mysql a universal binary"],
|
||||
['--enable-local-infile', "Build with local infile loading support"]
|
||||
]
|
||||
|
@ -51,6 +52,9 @@ class Mysql < Formula
|
|||
# Build the embedded server
|
||||
args << "-DWITH_EMBEDDED_SERVER=ON" if ARGV.include? '--with-embedded'
|
||||
|
||||
# Compile with readline unless libedit is explicitly chosen
|
||||
args << "-DWITH_READLINE=yes" unless ARGV.include? '--with-libedit'
|
||||
|
||||
# Make universal for binding to universal applications
|
||||
args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if ARGV.build_universal?
|
||||
|
||||
|
|
Loading…
Reference in a new issue