diff options
| author | Adam Vandenberg | 2010-09-07 10:09:22 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-07 10:09:22 -0700 |
| commit | e1af735d7752f31fcffd897cdafa4203813fa6a0 (patch) | |
| tree | f3c0bf788773404848b52412750514a2e2f747b0 | |
| parent | 339abc769d17cc9c8c39ca7236baffa21d212ce5 (diff) | |
| download | brew-e1af735d7752f31fcffd897cdafa4203813fa6a0.tar.bz2 | |
ENV.rb - style tweak
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 12 |
1 files 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' |
