Skip to content

Commit 4a288a3

Browse files
committed
ci: compile with -Og where applicable.
To improve performance of check-world, and improve debugging, without significantly slower builds (they're cached anyway). This makes freebsd check-world run in 8.5 minutes rather than 15 minutes. Author: Justin Pryzby <pryzbyj@telsasoft.com> Reviewed-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20220310220611.GH28503@telsasoft.com
1 parent 225fb55 commit 4a288a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.cirrus.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ task:
107107
\
108108
CC="ccache cc" \
109109
CXX="ccache c++" \
110-
CFLAGS="-O0 -ggdb"
110+
CFLAGS="-Og -ggdb"
111111
EOF
112112
build_script: su postgres -c "gmake -s -j${BUILD_JOBS} world-bin"
113113
upload_caches: ccache
@@ -201,8 +201,8 @@ task:
201201
CC="ccache gcc" \
202202
CXX="ccache g++" \
203203
CLANG="ccache clang" \
204-
CFLAGS="-O0 -ggdb" \
205-
CXXFLAGS="-O0 -ggdb"
204+
CFLAGS="-Og -ggdb" \
205+
CXXFLAGS="-Og -ggdb"
206206
EOF
207207
build_script: su postgres -c "make -s -j${BUILD_JOBS} world-bin"
208208
upload_caches: ccache
@@ -315,8 +315,8 @@ task:
315315
CC="ccache cc" \
316316
CXX="ccache c++" \
317317
CLANG="ccache ${brewpath}/llvm/bin/ccache" \
318-
CFLAGS="-O0 -ggdb" \
319-
CXXFLAGS="-O0 -ggdb" \
318+
CFLAGS="-Og -ggdb" \
319+
CXXFLAGS="-Og -ggdb" \
320320
\
321321
LLVM_CONFIG=${brewpath}/llvm/bin/llvm-config \
322322
PYTHON=python3

0 commit comments

Comments
 (0)