Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build with bindgen feature (#314)
Since a2fed13, when the bindgen feature is enabled, the build script writes the bindings to OUT_DIR/sys_<arch>.rs (or src/sys/sys_<arch>.rs when the overwrite feature is enabled). However, the src/sys/mod.rs file still imports the file from OUT_DIR/sys.rs (without the architecture in the file name). OUT_DIR already depends on the architecture, so there is no need to include the architecture in the file name. Modify the build script to write the file to OUT_DIR/sys.rs so that it can be included by src/sys/mod.rs.
- Loading branch information