зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1412460 - Always evaluate config environment; r=mshal
I /think/ the only scenario where we wouldn't be able to evaluate a config environment after configure was the case where MOZ_BUILD_PROJECTS was in play. Since we removed support for that feature, let's drop support for treating the config environment as optional. MozReview-Commit-ID: 4sz9dOwaA3y --HG-- extra : rebase_source : 44c0d5d51238cdcb0b311f205a9faf306bb18b19
This commit is contained in:
Родитель
8994099266
Коммит
905d805ac5
|
@ -1096,7 +1096,6 @@ class BuildDriver(MozbuildObject):
|
|||
# Try to call the default backend's build() method. This will
|
||||
# run configure to determine BUILD_BACKENDS if it hasn't run
|
||||
# yet.
|
||||
config = None
|
||||
try:
|
||||
config = self.config_environment
|
||||
except Exception:
|
||||
|
@ -1105,20 +1104,12 @@ class BuildDriver(MozbuildObject):
|
|||
if config_rc != 0:
|
||||
return config_rc
|
||||
|
||||
# Even if configure runs successfully, we may have trouble
|
||||
# getting the config_environment for some builds, such as
|
||||
# OSX Universal builds. These have to go through client.mk
|
||||
# regardless.
|
||||
try:
|
||||
config = self.config_environment
|
||||
except Exception:
|
||||
pass
|
||||
config = self.config_environment
|
||||
|
||||
if config:
|
||||
active_backend = config.substs.get('BUILD_BACKENDS', [None])[0]
|
||||
if active_backend:
|
||||
backend_cls = get_backend_class(active_backend)(config)
|
||||
status = backend_cls.build(self, output, jobs, verbose)
|
||||
active_backend = config.substs.get('BUILD_BACKENDS', [None])[0]
|
||||
if active_backend:
|
||||
backend_cls = get_backend_class(active_backend)(config)
|
||||
status = backend_cls.build(self, output, jobs, verbose)
|
||||
|
||||
# If the backend doesn't specify a build() method, then just
|
||||
# call client.mk directly.
|
||||
|
|
Загрузка…
Ссылка в новой задаче