Devolutions / Devolutions/CMakeRust

Does not appear to follow target specified in .cargo/config

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
CMake
星标
175
派生
30
PR 合并指标
30 天内没有已合并 PR

描述

I have a project that uses Rust for a target other than the one I am building on.
In my case: an embedded target (drastically different architecture).

It seems like the CMake module does not pick up on the target set in `.cargo/config`.

Building the library on its own with just `cargo build` does, of course, apply that option, and it builds successfully as expected.
However, when I set up CMakeRust to build it, it ends up trying to build the lib for `i686-unknown-linux-gnu`.

It looks like the target is inferred in `CMakeCargo.cmake`, with no option to set it as an argument?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。