Use Python3 explicitly on this test because shutil.which does not exist on Python 2.
This commit is contained in:
parent
5e4f04e8f1
commit
080674371f
|
@ -1,4 +1,5 @@
|
||||||
gen = find_program('manygen.py')
|
gen = files('manygen.py')
|
||||||
|
py3_bin = import('python3').find_python()
|
||||||
|
|
||||||
buildtype = get_option('buildtype')
|
buildtype = get_option('buildtype')
|
||||||
buildtype_args = '-Dfooxxx' # a useless compiler argument
|
buildtype_args = '-Dfooxxx' # a useless compiler argument
|
||||||
|
@ -20,5 +21,5 @@ endif
|
||||||
generated = custom_target('manygen',
|
generated = custom_target('manygen',
|
||||||
output : outfiles,
|
output : outfiles,
|
||||||
input : ['funcinfo.def'],
|
input : ['funcinfo.def'],
|
||||||
command : [gen, '@INPUT@', '@OUTDIR@', buildtype_args],
|
command : [py3_bin, gen[0], '@INPUT@', '@OUTDIR@', buildtype_args],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue