bindings/python/wscript
changeset 11458 126b15bc1efc
parent 11074 ff5ee93352fe
child 11459 b08e8279b57d
--- a/bindings/python/wscript	Tue Jun 23 14:32:41 2015 +0200
+++ b/bindings/python/wscript	Tue Jun 23 14:34:53 2015 +0200
@@ -192,13 +192,11 @@
 ''' % 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")