Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d5ee747 authored by Ivan Lozano's avatar Ivan Lozano
Browse files

cc/rust: Prevent duplicate obj files in staticlibs

When cc_library takes generated sources from a rust_bindgen to produce
the staticfns function, it ends up with duplicate .o files in the
archive. This leads to duplicate symbol collisions against itself if
included whole.

This CL makes sure that the .rs file that the rust_bindgen also produces
is properly ignored and doesn't influence the number of expected .o
files.

Test: m <rust_bindgen w/ static_inline_library linked whole>
Change-Id: I5c7d0db0fc5e2a825f468348b4a709f94a374782
parent e00c494f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment