Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab/build-tracing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ catch_warnings="${2:-1}"
mkdir -p extensions_$(uname -m) standalone_$(uname -m)

ECHO_ARG="-e"
CFLAGS="-std=gnu11 -O2 -g -Wall -Wextra"
export CFLAGS="-std=gnu11 -O2 -g -Wall -Wextra -flto=auto -ffat-lto-objects"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use an LTO mode supported by GCC 7

The Linux GNU packaging jobs use the CentOS 7 images configured in .gitlab/generate-package.php, and this script explicitly activates devtoolset-7 before exporting these flags. GCC 7 supports -flto, an integer job count, or jobserver, but not -flto=auto (GCC 7.5 LTO documentation); because the exported value is inherited by configure and the extension build, every CentOS artifact job will stop with an unsupported -flto= argument before producing packages. Use plain -flto, a numeric value, or a compiler-supported conditional.

Useful? React with 👍 / 👎.

if [ "${suffix}" = "-alpine" ]; then
CFLAGS="${CFLAGS} -Wno-error=return-local-addr"
fi
Expand Down
Loading