Skip to content

Commit 13512d1

Browse files
committed
CI-unixish.yml: use LTO in the callgrind step
1 parent d381ec2 commit 13512d1

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
@@ -149,7 +149,8 @@ jobs:
149149
rm -f 1.5.1.tar.gz
150150
151151
make clean
152-
make -j$(nproc) CXXOPTS="-O2 -g3" simplecpp
152+
# TODO: we could also use -O3 but that causes a performance regression with GCC
153+
make -j$(nproc) CXXOPTS="-O2 -g3 -flto" LDOPTS="-flto" simplecpp
153154
VALGRIND_TOOL=callgrind SIMPLECPP_PATH=simplecpp-1.5.1 ./selfcheck.sh >callgrind.log || (cat callgrind.log && false)
154155
cat callgrind.log
155156

0 commit comments

Comments
 (0)