heapless icon indicating copy to clipboard operation
heapless copied to clipboard

Depending on platform-specific (arm_llsc) features from a library

Open sjorsdewit opened this issue 1 year ago • 0 comments

I can compile my application (thumbv7em-none-eabihf) directly against heapless and it works fine. But in this case I have a library (e.g. device driver) that depends on heapless and it won't detect the arm_llsc platform correctly.

As a workaround I have copied build.rs into my library. This does work but feels a bit hacky. Is there a cleaner way for a library to depend on features like heapless::pool that require a specific platform such as arm_llsc ?Maybe the arm_llsc detection can be exposed as a helper or separate crate? Or via some feature flag?

sjorsdewit avatar Oct 15 '24 13:10 sjorsdewit