aboutsummaryrefslogtreecommitdiffhomepage
path: root/waftools/checks
diff options
context:
space:
mode:
authorGravatar Stefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-06 10:28:52 +0100
committerGravatar Stefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-06 10:32:21 +0100
commita53abbf4a68fdd700d6ef16e5a26db53d66e73c3 (patch)
treead5d8c6267c52dce6eb3b9cc83cae3cd0acfca37 /waftools/checks
parent4ed4341df8c3e25df2c695bca64ab6c770153f8c (diff)
build: fix regression in cross-compilation [2]
Fixup commit for 5cb8439015f5. getattr only works on dot notation.
Diffstat (limited to 'waftools/checks')
-rw-r--r--waftools/checks/generic.py2
1 files changed, 1 insertions, 1 deletions
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