ENV.rb - style tweak
This commit is contained in:
parent
339abc769d
commit
e1af735d77
@ -175,13 +175,11 @@ module HomebrewEnvExtension
|
||||
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
||||
end
|
||||
|
||||
# returns the compiler we're using
|
||||
# Shortcuts for reading common flags
|
||||
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
|
||||
def cflags; self['CFLAGS']; end
|
||||
def ldflags; self['LDFLAGS']; end
|
||||
|
||||
def m64
|
||||
append_to_cflags '-m64'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user