Bug 1723245 - Disable --gc-sections when building with sanitizer coverage. r=firefox-build-system-reviewers,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D122952
This commit is contained in:
Mike Hommey 2021-08-18 22:04:14 +00:00
Родитель 909d7d6787
Коммит 9cdc788c42
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -109,7 +109,14 @@ dnl ========================================================
dnl = Automatically remove dead symbols
dnl ========================================================
if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$DEVELOPER_OPTIONS" -a -z "$MOZ_PROFILE_GENERATE"; then
SANCOV=
case "$LIBFUZZER_FLAGS" in
*-fsanitize-coverage*|*-fsanitize=fuzzer*)
SANCOV=1
;;
esac
if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$DEVELOPER_OPTIONS" -a -z "$MOZ_PROFILE_GENERATE" -a -z "$SANCOV"; then
if test -n "$MOZ_DEBUG_FLAGS"; then
dnl See bug 670659
AC_CACHE_CHECK([whether removing dead symbols breaks debugging],