mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
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:
parent
030df1b5cf
commit
cc86146345
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user