Bug 1829053 - Enable graphite malloc wrapping in the wasm sandbox. r=shravanrn

Differential Revision: https://phabricator.services.mozilla.com/D175982
This commit is contained in:
Mike Hommey 2023-05-08 22:29:13 +00:00
Родитель 8958fe18f8
Коммит 44df7c20b1
2 изменённых файлов: 3 добавлений и 4 удалений

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

@ -33,7 +33,3 @@ for k, v in graphite_defines:
AllowCompilerWarnings()
FINAL_LIBRARY = 'gkmedias'
# provide a custom header that overrides malloc() and friends,
# to ensure safe OOM handling. Don't do this in the wasm sandbox.
DEFINES['GRAPHITE2_CUSTOM_HEADER'] = '"MozGrMalloc.h"'

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

@ -44,6 +44,9 @@ graphite_defines = [
# tell graphite2 not to export symbols, we'll be linking it directly with
# thebes
('GRAPHITE2_STATIC', True),
# provide a custom header that overrides malloc() and friends,
# to ensure safe OOM handling.
('GRAPHITE2_CUSTOM_HEADER', '"MozGrMalloc.h"'),
]
# disable features we don't need in the graphite2 code, to reduce code size