diff --git a/configure b/configure index 799c9e98dc599b..632e6ff362710c 100755 --- a/configure +++ b/configure @@ -8680,13 +8680,6 @@ fi ;; esac ;; - *emcc*) - if test "$Py_LTO_POLICY" != "default"; then - as_fn_error $? "emcc supports only default lto." "$LINENO" 5 - fi - LTOFLAGS="-flto" - LTOCFLAGS="-flto" - ;; *gcc*) if test $Py_LTO_POLICY = thin then diff --git a/configure.ac b/configure.ac index 6769ab2bfe1e59..658a438fb3199c 100644 --- a/configure.ac +++ b/configure.ac @@ -1956,13 +1956,6 @@ if test "$Py_LTO" = 'true' ; then ;; esac ;; - *emcc*) - if test "$Py_LTO_POLICY" != "default"; then - AC_MSG_ERROR([emcc supports only default lto.]) - fi - LTOFLAGS="-flto" - LTOCFLAGS="-flto" - ;; *gcc*) if test $Py_LTO_POLICY = thin then