Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose a staticlib subtarget for rust libraries
Summary: Adds a `foo[staticlib]` subtarget to rust libraries, and uses it in `libclank`'s `staticlib_extractor`. Ideally, the way that staticlib_extractor works to embed rust code into make requires a number of assumptions to hold, and we should try to fix this. The way zephyr_module works by gathering the link infos and exposing them as link args to cmake would be much nicer (https://www.internalfb.com/code/fbsource/[3616616e6817]/arvr/firmware/ar/zephyr/build_defs/zephyr_v2.bzl?lines=392-415) Reviewed By: shayne-fletcher Differential Revision: D57167468 fbshipit-source-id: 2bbbdbcfe86ef09c65a7a9a036dd2d68cd9f4a81
- Loading branch information