From 9e9f41c6133e071514764833a6049d6759a0ba2b Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Fri, 14 Apr 2017 02:01:35 +0200 Subject: [PATCH] Do not cast test outputs to integers with add_to_env --- waflib/Tools/c_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/waflib/Tools/c_config.py b/waflib/Tools/c_config.py index 45e3f751..f0186cf2 100755 --- a/waflib/Tools/c_config.py +++ b/waflib/Tools/c_config.py @@ -604,6 +604,8 @@ def post_check(self, *k, **kw): if kw.get('add_have_to_env', 1): if kw.get('uselib_store'): self.env[self.have_define(kw['uselib_store'])] = 1 + elif kw['execute'] and kw.get('define_ret'): + self.env[define_name] = is_success else: self.env[define_name] = int(is_success)