Fix Python bindings wscript and waf-tools for Waf 1.8

This commit is contained in:
Vedran Miletić
2015-06-23 14:34:53 +02:00
parent 5506d60922
commit 2006e41baa
4 changed files with 102 additions and 73 deletions

View File

@@ -192,13 +192,11 @@ int main ()
''' % dict(type1=t1, type2=t2)
try:
ret = conf.run_c_code(code=test_program,
env=conf.env.derive(), compile_filename='test.cc',
features='cxx cprogram', execute=False)
ret = conf.check(compiler='cxx', fragment=test_program, features='cxx')
except Errors.ConfigurationError:
ret = 1
ret = False
conf.msg('Checking for types %s and %s equivalence' % (t1, t2), (ret and 'no' or 'yes'))
return not ret
return ret
uint64_is_long = test("uint64_t", "unsigned long")
uint64_is_long_long = test("uint64_t", "unsigned long long")