Skip to content

Commit 4a97424

Browse files
committed
CI: Build xpost in release mode with LTO
The default xpost configure produces a debug build (asserts and debug log level) at plain -O2. Release mode plus LTO with -fno-semantic-interposition lets the one-line object and stack helpers, which are exported shared-library symbols, inline across translation units. Roughly halves suite runtime even before the xpost-side fixes.
1 parent a94e993 commit 4a97424

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/xpost.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
https://github.com/terryburton/xpost.git xpost-src
4646
cd xpost-src
4747
autoreconf -fi
48-
./configure --prefix="$GITHUB_WORKSPACE/xpost-inst" --without-x
48+
./configure --prefix="$GITHUB_WORKSPACE/xpost-inst" --without-x \
49+
--enable-release \
50+
CFLAGS="-O2 -flto -fno-semantic-interposition" LDFLAGS="-flto"
4951
make -j "$(nproc)"
5052
make install
5153

0 commit comments

Comments
 (0)