Bug 1847101 - Define WORDS_BIGENDIAN when targeting big endians. r=firefox-build-system-reviewers,ahochheiden, a=RyanVM

Some third party code (cairo, pixman, some media libs) rely on this
define being set. When they are built standalone, they get it from
autoconf, but we don't run their configure scripts, so that's missed.

Differential Revision: https://phabricator.services.mozilla.com/D185351
This commit is contained in:
Mike Hommey 2023-08-09 22:25:07 +00:00
parent a1b66923b5
commit e997d18600

View File

@ -782,6 +782,11 @@ set_config("HAVE_64BIT_BUILD", have_64_bit)
set_define("HAVE_64BIT_BUILD", have_64_bit)
add_old_configure_assignment("HAVE_64BIT_BUILD", have_64_bit)
# Some third-party code bases depend on this being set for big-endians.
set_define(
"WORDS_BIGENDIAN", True, when=depends(target.endianness)(lambda e: e == "big")
)
# Autoconf needs these set