Bug 1790540 - Gracefully handle when topobjdir is not set in MozbuildObject.mozconfig. r=firefox-build-system-reviewers,nalexander

This is a condition that happens when going through the js/src code path
in build/moz.configure/init.configure:mozconfig.

Differential Revision: https://phabricator.services.mozilla.com/D157769
This commit is contained in:
Mike Hommey 2022-09-21 03:29:55 +00:00
parent d74b5dc67c
commit e019e65008

View File

@ -198,7 +198,7 @@ class MozbuildObject(ProcessExecutionMixin):
)
def resolve_mozconfig_topobjdir(self, default=None):
topobjdir = self.mozconfig["topobjdir"] or default
topobjdir = self.mozconfig.get("topobjdir") or default
if not topobjdir:
return None