mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
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
This commit is contained in:
parent
225fb558cd
commit
4a288a37f9
10
.cirrus.yml
10
.cirrus.yml
@ -107,7 +107,7 @@ task:
|
|||||||
\
|
\
|
||||||
CC="ccache cc" \
|
CC="ccache cc" \
|
||||||
CXX="ccache c++" \
|
CXX="ccache c++" \
|
||||||
CFLAGS="-O0 -ggdb"
|
CFLAGS="-Og -ggdb"
|
||||||
EOF
|
EOF
|
||||||
build_script: su postgres -c "gmake -s -j${BUILD_JOBS} world-bin"
|
build_script: su postgres -c "gmake -s -j${BUILD_JOBS} world-bin"
|
||||||
upload_caches: ccache
|
upload_caches: ccache
|
||||||
@ -201,8 +201,8 @@ task:
|
|||||||
CC="ccache gcc" \
|
CC="ccache gcc" \
|
||||||
CXX="ccache g++" \
|
CXX="ccache g++" \
|
||||||
CLANG="ccache clang" \
|
CLANG="ccache clang" \
|
||||||
CFLAGS="-O0 -ggdb" \
|
CFLAGS="-Og -ggdb" \
|
||||||
CXXFLAGS="-O0 -ggdb"
|
CXXFLAGS="-Og -ggdb"
|
||||||
EOF
|
EOF
|
||||||
build_script: su postgres -c "make -s -j${BUILD_JOBS} world-bin"
|
build_script: su postgres -c "make -s -j${BUILD_JOBS} world-bin"
|
||||||
upload_caches: ccache
|
upload_caches: ccache
|
||||||
@ -315,8 +315,8 @@ task:
|
|||||||
CC="ccache cc" \
|
CC="ccache cc" \
|
||||||
CXX="ccache c++" \
|
CXX="ccache c++" \
|
||||||
CLANG="ccache ${brewpath}/llvm/bin/ccache" \
|
CLANG="ccache ${brewpath}/llvm/bin/ccache" \
|
||||||
CFLAGS="-O0 -ggdb" \
|
CFLAGS="-Og -ggdb" \
|
||||||
CXXFLAGS="-O0 -ggdb" \
|
CXXFLAGS="-Og -ggdb" \
|
||||||
\
|
\
|
||||||
LLVM_CONFIG=${brewpath}/llvm/bin/llvm-config \
|
LLVM_CONFIG=${brewpath}/llvm/bin/llvm-config \
|
||||||
PYTHON=python3
|
PYTHON=python3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user