Bug 1722652 - Reduce the number of flags passed to bindgen. r=firefox-build-system-reviewers,necko-reviewers,andi,dragana

Originally, we only were using bindgen for stylo, and we also went a bit
overkill by including a lot of extra CFLAGS in there, which end up
being unnecessary. So we now only pass a more minimal set of flags, and
add some extra CFLAGS in cases where they are necessary.

Differential Revision: https://phabricator.services.mozilla.com/D121043
This commit is contained in:
Mike Hommey 2021-07-28 20:37:49 +00:00
parent 4dce5725b3
commit e0929c4c22
4 changed files with 2 additions and 7 deletions

View File

@ -375,4 +375,4 @@ def bindgen_cflags(base_flags, extra_flags):
return " ".join(flags)
add_old_configure_assignment("_BINDGEN_CFLAGS", bindgen_cflags)
set_config("BINDGEN_SYSTEM_FLAGS", bindgen_cflags)

View File

@ -1404,9 +1404,6 @@ if test -n "$MOZ_DEV_EDITION"; then
AC_DEFINE(MOZ_DEV_EDITION)
fi
BINDGEN_SYSTEM_FLAGS="$_BINDGEN_CFLAGS $NSPR_CFLAGS"
AC_SUBST(BINDGEN_SYSTEM_FLAGS)
dnl ========================================================
dnl JavaScript shell
dnl ========================================================

View File

@ -1 +1 @@
@BINDGEN_SYSTEM_FLAGS@
@BINDGEN_SYSTEM_FLAGS@ @NSPR_CFLAGS@ @NSS_CFLAGS@

View File

@ -2401,8 +2401,6 @@ AC_SUBST_LIST(MOZ_CAIRO_LIBS)
AC_SUBST_LIST(MOZ_CAIRO_OSLIBS)
AC_SUBST(MOZ_TREE_PIXMAN)
BINDGEN_SYSTEM_FLAGS="$_BINDGEN_CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $MOZ_PIXMAN_CFLAGS $MOZ_CAIRO_CFLAGS"
AC_SUBST(BINDGEN_SYSTEM_FLAGS)
dnl ========================================================
dnl disable xul
dnl ========================================================