diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-03-13 13:00:12 -0400 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 13:05:58 +0200 |
commit | 3c73c0805cfb97689e9ce2419b7fe3625b3bc4a6 (patch) | |
tree | da12ffdb59600122555c242cce6a70fa7e346e0c /python | |
parent | db93b005f5c8ecfa601f002b207beca1e9292dd0 (diff) | |
download | uxp-3c73c0805cfb97689e9ce2419b7fe3625b3bc4a6.tar.gz |
Issue #1477 - Fix finding config.guess on builds not using MOZ_OBJDIR
* So far this seems to only affect Macintosh builds but other unix builds may be affected. Windows doesn't seem to be.
* This maintains consistency with other one-off file invocations and backwards compatibility with older comm setups
Diffstat (limited to 'python')
-rw-r--r-- | python/mozbuild/mozbuild/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/base.py b/python/mozbuild/mozbuild/base.py index 9d5897a34a..9db1005d11 100644 --- a/python/mozbuild/mozbuild/base.py +++ b/python/mozbuild/mozbuild/base.py @@ -352,6 +352,13 @@ class MozbuildObject(ProcessExecutionMixin): return _config_guess_output[0] p = os.path.join(self.topsrcdir, 'build', 'autoconf', 'config.guess') + + # Try looking for mozilla, for comm-central + if not os.path.isfile(p): + p = os.path.join(self.topsrcdir, 'mozilla', 'build', 'autoconf', 'config.guess') + + if not os.path.isfile(p): + p = os.path.join(self.topsrcdir, 'platform', 'build', 'autoconf', 'config.guess') # This is a little kludgy. We need access to the normalize_command # function. However, that's a method of a mach mixin, so we need a |