diff options
| author | Adam Vandenberg | 2010-09-07 10:09:22 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-07 10:09:22 -0700 |
| commit | 43e0f817f2775a230460df49bac3cc85cfbd9c2b (patch) | |
| tree | a3b5b687d843fe98dce850887befe82799effac0 /Library | |
| parent | 1b7ebe70178e824a933c60b66458183e4bfb3c02 (diff) | |
| download | homebrew-43e0f817f2775a230460df49bac3cc85cfbd9c2b.tar.bz2 | |
ENV.rb - style tweak
Diffstat (limited to 'Library')
| -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' |
