aedi: do not overwrite state environment variables

some adjustments like temporary directory are made before target configuration stage
This commit is contained in:
alexey.lysiuk 2022-08-21 10:54:50 +03:00
parent 37484936a6
commit e410e3f7f4

View file

@ -91,6 +91,8 @@ class Builder(object):
state.jobs = arguments.jobs and arguments.jobs or \ state.jobs = arguments.jobs and arguments.jobs or \
subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip() subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip()
self._environment = state.environment
def _populate_platforms(self, arguments): def _populate_platforms(self, arguments):
state = self._state state = self._state
@ -150,7 +152,7 @@ class Builder(object):
def _build(self, target: Target): def _build(self, target: Target):
state = self._state state = self._state
state.environment = os.environ.copy() state.environment = self._environment.copy()
state.options = CommandLineOptions() state.options = CommandLineOptions()
target.configure(state) target.configure(state)