Skip to content

Commit

Permalink
Bug 1513798 - Revert bug 638149 and leave it to configure to set -dea…
Browse files Browse the repository at this point in the history
…d_strip. r=nalexander

We're always setting -dead_strip on mac builds, per
cross-mozconfig.common, we might as well not do that and revert bug
638149, which disabled adding -dead_strip with LTO: that is apparently
not a problem anymore.

Differential Revision: https://phabricator.services.mozilla.com/D14373
  • Loading branch information
glandium committed Dec 18, 2018
1 parent bcd1743 commit 63ddfee
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 32 deletions.
1 change: 0 additions & 1 deletion aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ builtin(include, build/autoconf/codeset.m4)dnl
builtin(include, build/autoconf/altoptions.m4)dnl
builtin(include, build/autoconf/mozprog.m4)dnl
builtin(include, build/autoconf/mozheader.m4)dnl
builtin(include, build/autoconf/lto.m4)dnl
builtin(include, build/autoconf/frameptr.m4)dnl
builtin(include, build/autoconf/compiler-opts.m4)dnl
builtin(include, build/autoconf/expandlibs.m4)dnl
Expand Down
19 changes: 0 additions & 19 deletions build/autoconf/lto.m4

This file was deleted.

2 changes: 1 addition & 1 deletion build/macosx/cross-mozconfig.common
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export CC="$topsrcdir/clang/bin/clang $FLAGS"
export CXX="$topsrcdir/clang/bin/clang++ $FLAGS"
export CPP="$topsrcdir/clang/bin/clang $FLAGS -E"
export LLVMCONFIG=$topsrcdir/clang/bin/llvm-config
export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip"
export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT"
export BINDGEN_CFLAGS="$FLAGS"
export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin11-
export DSYMUTIL=$topsrcdir/build/macosx/llvm-dsymutil
Expand Down
1 change: 0 additions & 1 deletion js/src/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ builtin(include, ../../build/autoconf/codeset.m4)dnl
builtin(include, ../../build/autoconf/altoptions.m4)dnl
builtin(include, ../../build/autoconf/mozprog.m4)dnl
builtin(include, ../../build/autoconf/mozheader.m4)dnl
builtin(include, ../../build/autoconf/lto.m4)dnl
builtin(include, ../../build/autoconf/frameptr.m4)dnl
builtin(include, ../../build/autoconf/compiler-opts.m4)dnl
builtin(include, ../../build/autoconf/expandlibs.m4)dnl
Expand Down
6 changes: 1 addition & 5 deletions js/src/old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ case "$host" in
;;
esac

MOZ_DOING_LTO(lto_is_enabled)

dnl ========================================================
dnl Add optional and non-optional hardening flags from toolchain.configure
dnl ========================================================
Expand Down Expand Up @@ -593,11 +591,9 @@ case "$target" in
fi
LDFLAGS=$_SAVE_LDFLAGS

if test "x$lto_is_enabled" = "xyes"; then
echo "Skipping -dead_strip because lto is enabled."
dnl DTrace and -dead_strip don't interact well. See bug 403132.
dnl ===================================================================
elif test "x$enable_dtrace" = "xyes"; then
if test "x$enable_dtrace" = "xyes"; then
echo "Skipping -dead_strip because DTrace is enabled. See bug 403132."
else
dnl check for the presence of the -dead_strip linker flag
Expand Down
6 changes: 1 addition & 5 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,6 @@ case "$host" in
;;
esac

MOZ_DOING_LTO(lto_is_enabled)

dnl ========================================================
dnl System overrides of the defaults for target
dnl ========================================================
Expand Down Expand Up @@ -723,11 +721,9 @@ case "$target" in
MOZ_DEBUG_LDFLAGS="$MOZ_DEBUG_LDFLAGS -framework ExceptionHandling";
fi

if test "x$lto_is_enabled" = "xyes"; then
echo "Skipping -dead_strip because lto is enabled."
dnl DTrace and -dead_strip don't interact well. See bug 403132.
dnl ===================================================================
elif test "x$enable_dtrace" = "xyes"; then
if test "x$enable_dtrace" = "xyes"; then
echo "Skipping -dead_strip because DTrace is enabled. See bug 403132."
else
dnl check for the presence of the -dead_strip linker flag
Expand Down

0 comments on commit 63ddfee

Please sign in to comment.