From e410e3f7f4398e966f07346bd4ddcbc84a91157c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 21 Aug 2022 10:54:50 +0300 Subject: [PATCH] aedi: do not overwrite state environment variables some adjustments like temporary directory are made before target configuration stage --- aedi/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aedi/builder.py b/aedi/builder.py index 606d0cdc..784af7e5 100644 --- a/aedi/builder.py +++ b/aedi/builder.py @@ -91,6 +91,8 @@ class Builder(object): state.jobs = arguments.jobs and arguments.jobs or \ subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip() + self._environment = state.environment + def _populate_platforms(self, arguments): state = self._state @@ -150,7 +152,7 @@ class Builder(object): def _build(self, target: Target): state = self._state - state.environment = os.environ.copy() + state.environment = self._environment.copy() state.options = CommandLineOptions() target.configure(state)