fix: clean between wheel and tarball builds to avoid TCL mismatch

The wheel build uses ENABLE_TCL=0, but the standalone yosys binary
needs ENABLE_TCL=1. Without a clean, stale .o files cause undefined
reference errors for TCL symbols.

Made-with: Cursor
This commit is contained in:
Akash Levy 2026-02-28 13:49:53 -08:00
parent fe4a997549
commit 944d0b370a
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ jobs:
) python3 setup.py bdist_wheel --dist-dir /src/dist
# Also build the yosys binary + install tarball
make -j$(nproc) SMALL=1 ENABLE_PLUGINS=0 PREFIX=/usr/local install
make clean
make -j$(nproc) SMALL=1 ENABLE_PLUGINS=0 ENABLE_TCL=1 ENABLE_READLINE=1 PREFIX=/usr/local
make DESTDIR=/tmp/install PREFIX=/usr/local install
cd /tmp/install
tar czf /src/yosys-anylinux-amd64.tar.gz .