summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-07-16 10:21:43 +0200
committerXavier Claessens <xclaesse@gmail.com>2024-07-17 13:20:16 -0400
commita05f6a260ef4882f82da38ff1818ca8391b15bd8 (patch)
treeaefc5f59db94399067814f6d28e84aee50c04e6e /packaging
parent6e200222957063819a00e3bf767ce28b7489c31f (diff)
downloadmeson-a05f6a260ef4882f82da38ff1818ca8391b15bd8.tar.gz
rust: recursively pull proc-macro deps for rust targets
aee941559 ("rust: recursively pull proc-macro dependencies as well") had to be reverted (in a66cb97e8) because it broke Mesa cross compilation. This happened because a C shared library was linked with a Rust C-ABI static library, which caused it to inherit the proc macro dependency the Rust static library was linked with. The right way to handle this is for only Rust targets to inherit proc macro dependencies from static libraries they link with. A Rust executable, library, or whatever will need the proc macros its Rust dependencies use, as illustrated in the test case that I've reintroduced here. I've verified that Mesa still cross compiles correctly with this change. The same failure was also identified by the "rust/21 transitive dependencies" test case, but only when cross compiling, so it wasn't caught by CI. Co-authored-by: Xavier Claessens <xavier.claessens@collabora.com>
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions