aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-05-09 20:49:36 -0500
committerJack Nagel2014-05-09 20:49:36 -0500
commite271c21e4473a8a12ebadfc377123b8be5ddf783 (patch)
treefbd3c6a4926db271b0d092be529d0d7b5785b8ae /Library/Formula
parent74350ad341e52e5a4c8d2ab90551a48f78914422 (diff)
downloadhomebrew-e271c21e4473a8a12ebadfc377123b8be5ddf783.tar.bz2
mysql: build universal under superenv
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mysql.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 0ee965ef6..71baca6b0 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -30,8 +30,6 @@ class Mysql < Formula
conflicts_with 'mysql-connector-c',
:because => 'both install MySQL client libraries'
- env :std if build.universal?
-
fails_with :llvm do
build 2326
cause "https://github.com/Homebrew/homebrew/issues/issue/144"
@@ -86,7 +84,10 @@ class Mysql < Formula
args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1" if build.with? 'blackhole-storage-engine'
# Make universal for binding to universal applications
- args << "-DCMAKE_OSX_ARCHITECTURES='#{Hardware::CPU.universal_archs.as_cmake_arch_flags}'" if build.universal?
+ if build.universal?
+ ENV.universal_binary
+ args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
+ end
# Build with local infile loading support
args << "-DENABLED_LOCAL_INFILE=1" if build.include? 'enable-local-infile'