From ea2dd613a4a821f94b0bc16d10d56d091174ecd8 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Thu, 24 Oct 2013 16:03:44 -0700 Subject: [PATCH] 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". --- Library/Homebrew/extend/ENV/std.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 92bdfd7943..5c228d84ad 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