Commit 826a226f authored by Sean McGovern's avatar Sean McGovern Committed by Tristan Matthews

configure: remove O4 compiler optimization level test

It is not a documented optimization level for gcc or clang.
This makes building with clang significantly less spammy.
Signed-off-by: default avatarTristan Matthews <tmatth@videolan.org>
parent 01eb5773
......@@ -955,21 +955,9 @@ AC_ARG_ENABLE(optimizations,
dnl Check for various optimization flags
AS_IF([test "${enable_optimizations}" != "no"], [
dnl -O4 and -O3 only in production builds
dnl -O3 only in production builds
AS_IF([test "${enable_debug}" = "no"], [
VLC_SAVE_FLAGS
CFLAGS="${CFLAGS} -O4"
CXXFLAGS="${CXXFLAGS} -O4"
OBJCFLAGS="${OBJCFLAGS} -O4"
AC_CACHE_CHECK([if $CC accepts -O4], [ac_cv_c_o4], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [
ac_cv_c_o4=yes
], [
ac_cv_c_o4=no
])
])
AS_IF([test "${ac_cv_c_o4}" = "no"], [
VLC_RESTORE_FLAGS
CFLAGS="${CFLAGS} -O3"
CXXFLAGS="${CXXFLAGS} -O3"
OBJCFLAGS="${OBJCFLAGS} -O3"
......@@ -982,7 +970,6 @@ AS_IF([test "${enable_optimizations}" != "no"], [
])
AS_IF([test "${ac_cv_c_o3}" = "no"], [VLC_RESTORE_FLAGS])
])
])
dnl Check for -ffast-math
VLC_SAVE_FLAGS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment