Skip to content

Fix rquickjs-sys host build failing when cross-compiling to Android#711

Open
richarddd wants to merge 1 commit into
DelSkayn:masterfrom
richarddd:fix/host-bindgen-cross-compile
Open

Fix rquickjs-sys host build failing when cross-compiling to Android#711
richarddd wants to merge 1 commit into
DelSkayn:masterfrom
richarddd:fix/host-bindgen-cross-compile

Conversation

@richarddd

@richarddd richarddd commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Issue # (if available)

#709

Description of changes

When cross-compiling with the macro feature, sys gets built for the host too, and if LIBCLANG_PATH points at the cross toolchain (e.g. Android NDK) that host build generates mismatched bindings. This makes the host build reuse the bundled binding when one exists instead of running bindgen, avoiding the mismatch.

Checklist

  • Added change to the changelog
  • Created unit tests for my feature if needed

@richarddd richarddd force-pushed the fix/host-bindgen-cross-compile branch from 949aa16 to 18b76b3 Compare July 12, 2026 19:50
@richarddd richarddd force-pushed the fix/host-bindgen-cross-compile branch from 18b76b3 to ed632f1 Compare July 12, 2026 19:50
@richarddd

Copy link
Copy Markdown
Collaborator Author

Thanks @deretame for reporting

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.

1 participant