Skip to content

Conversation

@bdash
Copy link
Contributor

@bdash bdash commented Aug 6, 2025

The $<TARGET_FILE:binaryninjaapi> syntax does not do what is intended for Unix Makefiles.

In practice there's no reason for this custom command to depend on the binaryninjaapi target. The Rust API uses core's C APIs directly rather than via the C++ API, and it already depends on binaryninjacore.h via RUST_API_SOURCES. Since it's running cargo check and not doing a full compilation this header-only dependency is sufficient.

The `$<TARGET_FILE:binaryninjaapi>` syntax does not do what is intended
for Unix Makefiles.

In practice there's no reason for this custom command to depend on the
`binaryninjaapi` target. The Rust API uses core's C APIs directly rather
than via the C++ API, and it already depends on binaryninjacore.h via
`RUST_API_SOURCES`. Since it's running `cargo check` and not doing a
full compilation this header-only dependency is sufficient.
@bdash bdash force-pushed the rust-api-cmake-makefiles branch from d29feb4 to 72e0b2f Compare August 9, 2025 05:00
@bdash bdash merged commit 72e0b2f into dev Aug 9, 2025
9 of 10 checks passed
@bdash bdash deleted the rust-api-cmake-makefiles branch August 9, 2025 05:04
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