mirror of https://gitlab.com/ita1024/waf.git
Tools: ar: support for ARFLAGS environment variable
For instance, to make deterministic archives:: ARFLAGS=rcsD waf configure
This commit is contained in:
parent
80bc0a65ce
commit
6546e34176
|
@ -18,5 +18,7 @@ def find_ar(conf):
|
|||
def configure(conf):
|
||||
"""Find the ar program and set the default flags in ``conf.env.ARFLAGS``"""
|
||||
conf.find_program('ar', var='AR')
|
||||
conf.env.ARFLAGS = 'rcs'
|
||||
conf.add_os_flags('ARFLAGS')
|
||||
if not conf.env.ARFLAGS:
|
||||
conf.env.ARFLAGS = ['rcs']
|
||||
|
||||
|
|
Loading…
Reference in New Issue