Bug 1850868 - Enable relrhack for android builds on automation. r=firefox-build-system-reviewers,andi

Differential Revision: https://phabricator.services.mozilla.com/D188411
This commit is contained in:
Mike Hommey 2023-09-20 05:04:54 +00:00
Родитель ed72126fe9
Коммит 3c4fce5868
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1499,12 +1499,12 @@ with only_when("--enable-compile-environment"):
if enable and enable != ("relr",):
return enable
@depends("--enable-elf-hack", "MOZ_AUTOMATION", target, when=has_elfhack)
def may_enable_relrhack(enable, automation, target):
@depends("--enable-elf-hack", "MOZ_AUTOMATION", when=has_elfhack)
def may_enable_relrhack(enable, automation):
# For now, only enable relrhack when explicitly given with
# --enable-elf-hack=relr. On automation, we automatically
# enable it when possible.
if automation and target.os != "Android" and enable and enable != ("legacy",):
if automation and enable and enable != ("legacy",):
return enable
if enable == ("relr",):
return enable