Skip to content

Commit 754b2bc

Browse files
committed
CI-unixish.yml: use LTO in the callgrind step
1 parent bd15495 commit 754b2bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ jobs:
146146
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
147147
tar xvf 1.5.1.tar.gz
148148
make clean
149-
make -j$(nproc) CXXOPTS="-O2 -g3"
149+
# TODO: we could also use -O3 but that causes a performance regression with GCC
150+
make -j$(nproc) CXXOPTS="-O2 -g3 -flto" LDOPTS="-flto"
150151
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind.log || (cat callgrind.log && false)
151152
cat callgrind.log
152153
for f in callgrind.out.*;

0 commit comments

Comments
 (0)