From eb650b71ad944c2aaa890fb6ea7a5119542c81bd Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 11 Apr 2019 01:32:19 +0300 Subject: [PATCH] waflib: subproject: restore environment in build context --- scripts/waflib/subproject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/waflib/subproject.py b/scripts/waflib/subproject.py index c629a6eb..c09ed74d 100644 --- a/scripts/waflib/subproject.py +++ b/scripts/waflib/subproject.py @@ -123,5 +123,7 @@ def add_subproject(ctx, names): for name in names_lst: if name in IGNORED_SUBDIRS: return + saveenv = ctx.env ctx.env = ctx.all_envs[name] - ctx.recurse(name) + ctx.recurse(name) + ctx.env = saveenv