waf: take ap_version.h int items from environment as we do str items

This will mean we take the integer version of GIT_VERSION from the env
too
This commit is contained in:
Peter Barker 2022-04-10 00:51:58 +10:00 committed by Peter Barker
parent fa293fd5f3
commit 7474a31a83

View File

@ -380,7 +380,7 @@ def ap_version_append_str(ctx, k, v):
@conf
def ap_version_append_int(ctx, k, v):
ctx.env['AP_VERSION_ITEMS'] += [(k,v)]
ctx.env['AP_VERSION_ITEMS'] += [(k, '{}'.format(os.environ.get(k, v)))]
@conf
def write_version_header(ctx, tgt):