Skip to content

Commit f48ed6d

Browse files
fix: add Z3 static lib search path to RUSTFLAGS for musl build
z3-sys build.rs only emits cargo:rustc-link-search when the static-link-z3 feature is enabled. Since we build Z3 from source without that feature, the linker never gets -L /usr/local/z3-static/lib. Adding it via RUSTFLAGS ensures the linker can find libz3.a. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 055ce06 commit f48ed6d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ jobs:
7575
sudo ninja install
7676
echo "Z3_SYS_Z3_HEADER=/usr/local/z3-static/include/z3.h" >> $GITHUB_ENV
7777
echo "Z3_SYS_Z3_LIB_DIR=/usr/local/z3-static/lib" >> $GITHUB_ENV
78+
# z3-sys build.rs only emits rustc-link-search with static-link-z3 feature;
79+
# we must add the search path manually via RUSTFLAGS
80+
echo "RUSTFLAGS=-L /usr/local/z3-static/lib" >> $GITHUB_ENV
7881
- name: Install system dependencies (macOS)
7982
if: runner.os == 'macOS'
8083
run: |

0 commit comments

Comments
 (0)