hyperlight-dev / hyperlight-dev/hyperlight

Wrong compilation target when building guest crates that use cc-rs

未关闭
#969 0 条评论 0 个 reaction 已指派 1 人 已被 @jprendes 认领 在 GitHub 查看
lifecycle/confirmed
主要语言
Rust
星标
4.7k
派生
208
平均合并
1 天 7 小时
30 天内合并 PR
47

描述

When we build a guest crate that has some C dependencies built with cc-rs, the intention is to use the x86_64-unknown-linux-none, as explained in the comments in hyperlight-guest-bin's build.rs.
However, when invoking clang, cc-rs will pass the --target=x86_64-unknown-none target.
As the clang wrapper flags are PREPENDED in the in the actual clang invokation, the cc-rs --target overrides the wraper's target.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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