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:
parent
aaa1b6f683
commit
806b410c6a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user