From d69be7f6195dc8ec64bd4316690206c695a632ad Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 22 May 2014 09:18:34 -0500 Subject: [PATCH] Add ENV.m64 to superenv --- Library/Homebrew/extend/ENV/super.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 011b854ab6..d42aa4b57e 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -300,6 +300,10 @@ module Superenv append "HOMEBREW_ARCHFLAGS", "-m32" end + def m64 + append "HOMEBREW_ARCHFLAGS", "-m64" + end + def cxx11 case homebrew_cc when "clang" @@ -339,7 +343,7 @@ module Superenv # These methods provide functionality that has not yet been ported to # superenv. - noops.concat %w{m64 gcc_4_0_1 minimal_optimization no_optimization enable_warnings} + noops.concat %w{gcc_4_0_1 minimal_optimization no_optimization enable_warnings} noops.each { |m| alias_method m, :noop } end