build fails on macos and llvm 19 due to static system library

  • version of llvm-sys you're using (either crate version or commit hash)

191.0.0

  • OS you're compiling on, including version if possible (example: Ubuntu 20.04 or macOS 13)

macOS 15.7.1 (github runner)

  • what version of LLVM you're building against and where you got it from (from a package provided by your OS, built it yourself, using llvmenv..)

19.1.7 Downloading and extracted from published release url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/LLVM-19.1.7-macOS-ARM64.tar.xz'

I'm running into the same problem as #75 (closed), the output of llvm-config --system-libs --link-static gives:

-lm -lz /opt/homebrew/lib/libzstd.a -lxml2

And the build fails with:

thread 'main' (20618) panicked at /Users/runner/work/diffsl/diffsl/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/llvm-sys-191.0.0/build.rs:352:26:
  Shared library should be a .so file

You can see the full logs here: https://github.com/martinjrobins/diffsl/actions/runs/19574035410/job/56054463312