Skip to content
  • Ralph Böhme's avatar
    waf: only set mandatory to False if not already set by the caller · cbee3037
    Ralph Böhme authored and Andreas Schneider's avatar Andreas Schneider committed
    
    
    There are a bunch of callers that call find_program with mandatory=True,
    we should not overwrite this when explicity passed, eg:
    
      ctx.find_program('objcopy', var='OBJCOPY', mandatory=True)
    
      conf.SAMBA_CHECK_PERL(mandatory=True)
        -> conf.find_program('perl', var='PERL', mandatory=mandatory)
    
    With this patch we only change the default from False to True, but allow
    callers to choose specific behaviour.
    
    Signed-off-by: default avatarRalph Boehme <slow@samba.org>
    Reviewed-by: default avatarAndreas Schneider <asn@samba.org>
    
    Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
    Autobuild-Date(master): Mon Apr 29 17:07:02 UTC 2019 on sn-devel-184
    cbee3037