Skip to content

fix: allow bindgen to load libclang in static builds - #22

Merged
gsmlg merged 1 commit into
mainfrom
codex/fix-static-release-crt-static
Jul 9, 2026
Merged

fix: allow bindgen to load libclang in static builds#22
gsmlg merged 1 commit into
mainfrom
codex/fix-static-release-crt-static

Conversation

@gsmlg

@gsmlg gsmlg commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • disable musl crt-static for the static build Cargo invocation so bindgen can dlopen libclang
  • keep LIBCLANG_PATH pointing at Alpine's libclang package
  • cover the bindgen/libclang release-script behavior in the focused static NIF release test

Verification

  • elixir -e 'ExUnit.start(); Code.require_file("test/denox_static_nif_release_test.exs")'
  • sh -n .github/scripts/build-static-nif.sh
  • mix format --check-formatted test/denox_static_nif_release_test.exs
  • git diff --check

Follow-up for Release run 29013846958: aarch64 static musl built V8 and found libclang, but bindgen failed to dlopen it with musl crt-static enabled.

@gsmlg
gsmlg merged commit e830af2 into main Jul 9, 2026
5 checks passed
@gsmlg
gsmlg deleted the codex/fix-static-release-crt-static branch July 9, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants