From a53abbf4a68fdd700d6ef16e5a26db53d66e73c3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 6 Dec 2013 10:28:52 +0100 Subject: [PATCH] build: fix regression in cross-compilation [2] Fixup commit for 5cb8439015f5. getattr only works on dot notation. --- waftools/checks/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waftools/checks/generic.py b/waftools/checks/generic.py index cb291c0589..efe8bb51ff 100644 --- a/waftools/checks/generic.py +++ b/waftools/checks/generic.py @@ -25,7 +25,7 @@ def __merge_options__(dependency_identifier, *args): def _filter_cc_arguments(ctx, opts): if ctx.env.DEST_OS != Utils.unversioned_sys_platform(): # cross compiling, remove execute=True if present - if getattr(opts, 'execute', None) == True: + if opts.get('execute'): opts['execute'] = False return opts