homebrew-core/Formula/mysql-connector-c.rb
Adam Vandenberg e1bb919734 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00

17 lines
444 B
Ruby

require 'formula'
class MysqlConnectorC <Formula
@homepage='http://dev.mysql.com/downloads/connector/c/6.0.html'
@url='http://mysql.llarian.net/Downloads/Connector-C/mysql-connector-c-6.0.2.tar.gz'
@md5='f922b778abdd25f7c1c95a8329144d56'
depends_on 'cmake'
def install
fails_with_llvm "error: unsupported inline asm"
system "cmake . #{std_cmake_parameters}"
system 'make'
ENV.j1
system 'make install'
end
end