Skip to content

Commit

Permalink
percona-server: build universal under superenv
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed May 10, 2014
1 parent b8669bb commit 1f8bb36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Formula/percona-server.rb
Expand Up @@ -29,8 +29,6 @@ class PerconaServer < Formula
conflicts_with 'mysql-connector-c',
:because => 'both install MySQL client libraries'

env :std if build.universal?

fails_with :llvm do
build 2334
cause "https://github.com/Homebrew/homebrew/issues/issue/144"
Expand Down Expand Up @@ -98,7 +96,10 @@ def install
args << "-DWITH_INNODB_MEMCACHED=ON" if build.with? 'memcached'

# 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'
Expand Down

0 comments on commit 1f8bb36

Please sign in to comment.