Bug 1676290 - Don't use a toolchain prefix when cross-compiling from mac to mac. r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D96477
This commit is contained in:
Mike Hommey 2020-11-09 23:43:56 +00:00
parent 030df1b5cf
commit cc86146345

View File

@ -387,11 +387,12 @@ option(
)
@depends("--with-toolchain-prefix", target, cross_compiling)
def toolchain_prefix(value, target, cross_compiling):
@depends("--with-toolchain-prefix", host, target, cross_compiling)
def toolchain_prefix(value, host, target, cross_compiling):
if value:
return tuple(value)
if cross_compiling:
# We don't want a toolchain prefix by default when building on mac for mac.
if cross_compiling and not (target.os == "OSX" and host.os == "OSX"):
return ("%s-" % target.toolchain, "%s-" % target.alias)