-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write bindgen generated bindings to OUT_DIR
libbpf-sys is used as both build dependency and target dependency in a libbpf-cargo project. And when trying to enable bindgen for cross compilation in such project, the generated target-specific bindings would overwrite bundled amd64 bindings, causing libpbf-sys failed to satisfy its dependents as a build dependency. Change the behavior of "bindgen" feature to generate bindings into OUT_DIR instead of source directory to address this issue. And migrate the original behavior to "bindgen-source" feature.
- Loading branch information
1 parent
71ca96f
commit a93191a
Showing
4 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters