curl-compilers.m4: use -O2 as default optimize for clang

Not -Os

Closes #9444
This commit is contained in:
Daniel Stenberg 2022-09-06 16:39:42 +02:00
parent b0dae2a433
commit 51083a197c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -107,7 +107,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
flags_dbg_yes="-g"
flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
flags_opt_yes="-Os"
flags_opt_yes="-O2"
flags_opt_off="-O0"
else
AC_MSG_RESULT([no])