ENV.rb - style tweak
This commit is contained in:
parent
339abc769d
commit
e1af735d77
@ -175,13 +175,11 @@ module HomebrewEnvExtension
|
|||||||
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the compiler we're using
|
# Shortcuts for reading common flags
|
||||||
def cc; self['CC'] or "gcc"; end
|
def cc; self['CC'] or "gcc"; end
|
||||||
def cxx; self['CXX'] or "g++"; end
|
def cxx; self['CXX'] or "g++"; end
|
||||||
|
def cflags; self['CFLAGS']; end
|
||||||
# CFLAGS are read quite a bit
|
def ldflags; self['LDFLAGS']; end
|
||||||
def cflags; ENV['CFLAGS']; end
|
|
||||||
def ldflags; ENV['LDFLAGS']; end
|
|
||||||
|
|
||||||
def m64
|
def m64
|
||||||
append_to_cflags '-m64'
|
append_to_cflags '-m64'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user