Bug 1841197 - Undefine the mips builtin macro on mips in skia. r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D182536
This commit is contained in:
Mike Hommey 2023-06-30 02:07:45 +00:00
parent 1d4be990b0
commit 1413be85ca
2 changed files with 10 additions and 0 deletions

View File

@ -99,6 +99,11 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk', 'android'):
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
if CONFIG['CPU_ARCH'] in ('mips32', 'mips64'):
# The skia code uses `mips` as a variable, but it's a builtin preprocessor
# macro on mips that expands to `1`.
DEFINES['mips'] = False
"""
import json

View File

@ -610,3 +610,8 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk', 'android'):
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
if CONFIG['CPU_ARCH'] in ('mips32', 'mips64'):
# The skia code uses `mips` as a variable, but it's a builtin preprocessor
# macro on mips that expands to `1`.
DEFINES['mips'] = False