[PATCH] Configure: increase the default optimization level to -O2

Piotr Sikora piotr.sikora at frickle.com
Thu May 2 21:33:38 UTC 2024


# HG changeset patch
# User Piotr Sikora <piotr at aviatrix.com>
# Date 1714589900 0
#      Wed May 01 18:58:20 2024 +0000
# Node ID 429191aad8d3ab8f70d40dfdd7684a256357bc48
# Parent  49dce50fad40bf09db81ca2a35983ecd7b740e43
Configure: increase the default optimization level to -O2.

Signed-off-by: Piotr Sikora <piotr at aviatrix.com>

diff -r 49dce50fad40 -r 429191aad8d3 auto/cc/clang
--- a/auto/cc/clang	Tue Apr 16 18:29:59 2024 +0400
+++ b/auto/cc/clang	Wed May 01 18:58:20 2024 +0000
@@ -19,9 +19,9 @@
 
 # optimizations
 
-#NGX_CLANG_OPT="-O2"
+NGX_CLANG_OPT="-O2"
 #NGX_CLANG_OPT="-Oz"
-NGX_CLANG_OPT="-O"
+#NGX_CLANG_OPT="-O"
 
 case $CPU in
     pentium)
diff -r 49dce50fad40 -r 429191aad8d3 auto/cc/gcc
--- a/auto/cc/gcc	Tue Apr 16 18:29:59 2024 +0400
+++ b/auto/cc/gcc	Wed May 01 18:58:20 2024 +0000
@@ -48,9 +48,9 @@
 
 # optimizations
 
-#NGX_GCC_OPT="-O2"
+NGX_GCC_OPT="-O2"
 #NGX_GCC_OPT="-Os"
-NGX_GCC_OPT="-O"
+#NGX_GCC_OPT="-O"
 
 #CFLAGS="$CFLAGS -fomit-frame-pointer"
 


More information about the nginx-devel mailing list