1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 03:32:50 +00:00

build: cache compiler defines on the configure context directly

This commit is contained in:
Stefano Pigozzi 2013-11-24 14:10:35 +01:00
parent aaa1b6f683
commit 806b410c6a

View File

@ -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):