Bug 1422607 - move PREPROCESS_OPTION to moz.configure; r=chmanchester

This commit is contained in:
Nathan Froyd 2017-12-04 08:14:06 -05:00
Родитель 28926cae56
Коммит ec3249906a
3 изменённых файлов: 13 добавлений и 24 удалений

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

@ -1256,6 +1256,19 @@ set_config('PROFILE_GEN_LDFLAGS', pgo_flags.gen_ldflags)
set_config('PROFILE_USE_CFLAGS', pgo_flags.use_cflags)
set_config('PROFILE_USE_LDFLAGS', pgo_flags.use_ldflags)
@depends(c_compiler)
def preprocess_option(compiler):
# The uses of PREPROCESS_OPTION depend on the spacing for -o/-Fi.
if compiler.type in ('gcc', 'clang'):
return '-E -o '
else:
return '-P -Fi'
set_config('PREPROCESS_OPTION', preprocess_option)
# We only want to include windows.configure when we are compiling on
# Windows, for Windows.

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

@ -1923,18 +1923,6 @@ if test -n "$MOZ_DEV_EDITION"; then
AC_DEFINE(MOZ_DEV_EDITION)
fi
dnl ========================================================
dnl Determine options to use for running the preprocessor.
dnl ========================================================
if test -z "$GNU_CC" -a "$OS_ARCH" = "WINNT"; then
PREPROCESS_OPTION="-P -Fi"
else
PREPROCESS_OPTION="-E -o "
fi
AC_SUBST(PREPROCESS_OPTION)
dnl ========================================================
dnl JavaScript shell
dnl ========================================================

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

@ -4975,18 +4975,6 @@ HAVE_SYS_VFS_H
HAVE_SYS_MOUNT_H
"
dnl ========================================================
dnl Determine options to use for running the preprocessor.
dnl ========================================================
if test -z "$GNU_CC" -a "$OS_ARCH" = "WINNT"; then
PREPROCESS_OPTION="-P -Fi"
else
PREPROCESS_OPTION="-E -o "
fi
AC_SUBST(PREPROCESS_OPTION)
# Avoid using obsolete NSPR features
AC_DEFINE(NO_NSPR_10_SUPPORT)