follow up fix for waf-1.8 upgrade default tip
authorHajime Tazaki <tazaki@sfc.wide.ad.jp>
Mon, 21 Nov 2016 16:01:12 +0900
changeset 772 274220a5a949
parent 771 4ab31ef25d4a
follow up fix for waf-1.8 upgrade
bindings/python/wscript
--- a/bindings/python/wscript	Mon Nov 21 14:57:08 2016 +0900
+++ b/bindings/python/wscript	Mon Nov 21 16:01:12 2016 +0900
@@ -208,13 +208,12 @@
 ''' % 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")