diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-24 14:10:35 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-24 14:10:35 +0100 |
commit | 806b410c6a7db0d6d56145d3cc9381273163cc9a (patch) | |
tree | 17643d59f3c51df00bfb90d9cb5f20b56d05c769 /waftools/detections | |
parent | aaa1b6f6830949da2ee3c017992e0e65e7fa3101 (diff) | |
download | mpv-806b410c6a7db0d6d56145d3cc9381273163cc9a.tar.bz2 mpv-806b410c6a7db0d6d56145d3cc9381273163cc9a.tar.xz |
build: cache compiler defines on the configure context directly
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 1fee446409..bad1da7673 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -45,10 +45,10 @@ __compiler_map__ = { } def __apply_map__(ctx, fnmap): - if 'CC_ENV_VARS' not in ctx.env: - ctx.env.CC_ENV_VARS = str(__get_cc_env_vars__(ctx.env.CC)) + if not getattr(ctx, 'CC_ENV_VARS', None): + ctx.CC_ENV_VARS = str(__get_cc_env_vars__(ctx.env.CC)) for k, fn in fnmap.items(): - if ctx.env.CC_ENV_VARS.find(k) > 0: + if ctx.CC_ENV_VARS.find(k) > 0: fn(ctx) def configure(ctx): |