Skip to content
Snippets Groups Projects
Commit f3e856c9 authored by serge-sans-paille's avatar serge-sans-paille
Browse files

Bug 1880048 - Move -pipe check to moz.configure r=glandium

This flag is only meaningful for gcc, take that into account.

Differential Revision: https://phabricator.services.mozilla.com/D201703
parent 737d9c53
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,11 @@ def file_prefix_map_flags(path_remapping, path_remappings, compiler):
set_config("MOZ_FILE_PREFIX_MAP_FLAGS", file_prefix_map_flags)
@depends(c_compiler)
def is_gcc(c_compiler):
return c_compiler.type == "gcc"
@depends(c_compiler)
def is_gnu_cc(c_compiler):
return c_compiler.type != "clang-cl"
......@@ -160,6 +165,8 @@ def check_build_id_sha1(developer_options):
return not developer_options
check_and_add_flag("-pipe", when=is_gcc)
check_and_add_linker_flag("-Wl,--build-id=uuid", when=check_build_id_uuid)
check_and_add_linker_flag("-Wl,--build-id=sha1", when=check_build_id_sha1)
......
......@@ -860,23 +860,6 @@ if test -n "$COMPILE_ENVIRONMENT"; then
MOZ_CONFIG_CLANG_PLUGIN
fi # COMPILE_ENVIRONMENT
if test -z "$SKIP_COMPILER_CHECKS"; then
dnl ========================================================
dnl Check for gcc -pipe support
dnl ========================================================
AC_MSG_CHECKING([for -pipe support])
if test -n "$GNU_CC" -a -n "$GNU_CXX"; then
dnl Any gcc that supports firefox supports -pipe.
CFLAGS="$CFLAGS -pipe"
CXXFLAGS="$CXXFLAGS -pipe"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi # ! SKIP_COMPILER_CHECKS
MOZ_EXPAND_LIBS
dnl ========================================================
......
......@@ -983,22 +983,6 @@ if test -n "$COMPILE_ENVIRONMENT"; then
MOZ_CONFIG_CLANG_PLUGIN
fi # COMPILE_ENVIRONMENT
if test -z "$SKIP_COMPILER_CHECKS"; then
dnl ========================================================
dnl Check for gcc -pipe support
dnl ========================================================
AC_MSG_CHECKING([for -pipe support])
if test -n "$GNU_CC" -a -n "$GNU_CXX"; then
dnl Any gcc that supports firefox supports -pipe.
CFLAGS="$CFLAGS -pipe"
CXXFLAGS="$CXXFLAGS -pipe"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi # ! SKIP_COMPILER_CHECKS
AC_LANG_C
if test "$COMPILE_ENVIRONMENT"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment