Skip to content

sys: only compile enabled arch sources in build.rs#198

Open
CodeWenjiu wants to merge 1 commit into
capstone-rust:capstone-v6from
CodeWenjiu:capstone-v6-fix
Open

sys: only compile enabled arch sources in build.rs#198
CodeWenjiu wants to merge 1 commit into
capstone-rust:capstone-v6from
CodeWenjiu:capstone-v6-fix

Conversation

@CodeWenjiu
Copy link
Copy Markdown

In GCC 14+, -Wimplicit-function-declaration became an error that -w flag cannot suppress. The auto-generated AArch64 sources in capstone v6 trigger
this error even when the AArch64 feature is disabled, because build.rs previously compiled all arch directories unconditionally.

Filter arch directories by enabled cargo features, so only selected architectures' sources are compiled.

In GCC 14+, -Wimplicit-function-declaration became an error that -w flag
cannot suppress. The auto-generated AArch64 sources in capstone v6
trigger
this error even when the AArch64 feature is disabled, because build.rs
previously compiled all arch directories unconditionally.

Filter arch directories by enabled cargo features, so only selected
architectures' sources are compiled.
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