Skip to content

Commit

Permalink
Bug 1639815 - Move --disable-icf to python configure. r=froydnj
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed May 21, 2020
1 parent 03b3bd5 commit 711ffb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions build/autoconf/compiler-opts.m4
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ dnl ========================================================
dnl = Identical Code Folding
dnl ========================================================
MOZ_ARG_DISABLE_BOOL(icf,
[ --disable-icf Disable Identical Code Folding],
MOZ_DISABLE_ICF=1,
MOZ_DISABLE_ICF= )
if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$MOZ_DISABLE_ICF" -a -z "$DEVELOPER_OPTIONS"; then
AC_CACHE_CHECK([whether the linker supports Identical Code Folding],
LD_SUPPORTS_ICF,
Expand Down
1 change: 0 additions & 1 deletion build/moz.configure/old.configure
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def old_configure_options(*options):
'--enable-debug-js-modules',
'--enable-dump-painting',
'--enable-extensions',
'--enable-icf',
'--enable-install-strip',
'--enable-libproxy',
'--enable-logrefcnt',
Expand Down
6 changes: 6 additions & 0 deletions moz.configure
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ set_config('HAVE_DTRACE', True, when=dtrace)
set_define('INCLUDE_MOZILLA_DTRACE', True, when=dtrace)
add_old_configure_assignment('enable_dtrace', 'yes', when=dtrace)


js_option('--disable-icf', help='Disable Identical Code Folding')

add_old_configure_assignment(
'MOZ_DISABLE_ICF', '1', when=depends('--enable-icf')(lambda x: not x))

# Please do not add configure checks from here on.

# Fallthrough to autoconf-based configure
Expand Down

0 comments on commit 711ffb4

Please sign in to comment.