From e1af735d7752f31fcffd897cdafa4203813fa6a0 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 7 Sep 2010 10:09:22 -0700 Subject: ENV.rb - style tweak --- Library/Homebrew/extend/ENV.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index dc0061a91..9edb70f05 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -175,13 +175,11 @@ module HomebrewEnvExtension append 'CPPFLAGS', "-DNCURSES_OPAQUE=0" end - # returns the compiler we're using - def cc; self['CC'] or "gcc"; end - def cxx; self['CXX'] or "g++"; end - - # CFLAGS are read quite a bit - def cflags; ENV['CFLAGS']; end - def ldflags; ENV['LDFLAGS']; end + # Shortcuts for reading common flags + def cc; self['CC'] or "gcc"; end + def cxx; self['CXX'] or "g++"; end + def cflags; self['CFLAGS']; end + def ldflags; self['LDFLAGS']; end def m64 append_to_cflags '-m64' -- cgit v1.2.3