Bug 1403346 - Do not set unneeded CFLAGS variables during artifact builds. r=glandium

When we move to a shell aware split for AC_SUBST_LIST it will become an error
to emit an unquoted make variable reference. Currently this happens to only
occur during artifact builds when setting cflags related variables that aren't
needed there anyway, so here we skip settting those variables when a compile
environment isn't present.



MozReview-Commit-ID: EnHu48yyZ1C
This commit is contained in:
Chris Manchester 2017-10-25 15:10:04 -07:00
parent 94d7650a55
commit 77827089d0

View File

@ -4135,6 +4135,7 @@ dnl =
dnl ========================================================
MOZ_ARG_HEADER(Build dependencies)
if test "$COMPILE_ENVIRONMENT"; then
if test "$GNU_CC" -a "$GNU_CXX"; then
_DEPEND_CFLAGS='-MD -MP -MF $(MDDEPDIR)/$(@F).pp'
else
@ -4167,6 +4168,7 @@ else
AC_SUBST(NONASCII)
fi
fi
fi # COMPILE_ENVIRONMENT
dnl ========================================================
dnl =