diff options
| author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-10-26 13:49:51 +0200 |
|---|---|---|
| committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-10-26 13:49:51 +0200 |
| commit | 373a5c7f015350d4658983f86c620a7f8ae33ce0 (patch) | |
| tree | c361bd121a3f027239d0da92d559bbe2189919d8 | |
| parent | 42c5a5661a7f461543d630c2c37b495251d0daad (diff) | |
cookbook: setup the architecture env before calling prepare
In universal builds, prepare() must be called with the correct
environment, so access to env variables such as CFLAGS return
the correct value and not the generic one
| -rw-r--r-- | cerbero/build/cookbook.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cerbero/build/cookbook.py b/cerbero/build/cookbook.py index 94154ef7..94db2b4b 100644 --- a/cerbero/build/cookbook.py +++ b/cerbero/build/cookbook.py @@ -370,6 +370,7 @@ class CookBook (object): parse_file(filepath, d) r = d['Recipe'](self._config.arch_config[c]) r.__file__ = os.path.abspath(filepath) + self._config.arch_config[c].do_setup_env() r.prepare() if self._config.target_arch == Architecture.UNIVERSAL: recipe.add_recipe(r) |
