diff options
| author | Xiyue Deng | 2013-10-24 16:03:44 -0700 | 
|---|---|---|
| committer | Xiyue Deng | 2013-10-27 06:30:48 -0700 | 
| commit | ea2dd613a4a821f94b0bc16d10d56d091174ecd8 (patch) | |
| tree | a8d26b41aa8ea42e6b534b08106a5c675bb490b6 | |
| parent | 15e5fe43845c3b5619c66269e9c60cd984a75080 (diff) | |
| download | brew-ea2dd613a4a821f94b0bc16d10d56d091174ecd8.tar.bz2 | |
Make stdenv handling less intrusive.
* Don't encode "-Qunused-arguments", as this is only supported in Clang
  and will break building when C/C++ compiler is switched during the
  process, e.g. building gcc. The warning is harmless without
  "-Werror".
| -rw-r--r-- | Library/Homebrew/extend/ENV/std.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 92bdfd794..5c228d84a 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*-  require 'hardware'  require 'os/mac'  require 'extend/ENV/shared' @@ -195,7 +196,6 @@ module Stdenv      replace_in_cflags(/-Xarch_#{Hardware::CPU.arch_32_bit} (-march=\S*)/, '\1')      # Clang mistakenly enables AES-NI on plain Nehalem      set_cpu_cflags '-march=native', :nehalem => '-march=native -Xclang -target-feature -Xclang -aes' -    append_to_cflags '-Qunused-arguments'      @compiler = :clang    end  | 
