hyperlight-dev / hyperlight-dev/hyperlight

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

Open
#969 0 comments 0 reactions 1 assignee Claimed by @jprendes View on GitHub
lifecycle/confirmed
Dominant language
Rust
Stars
4.7k
Forks
208
Avg merge
1d 7h
Merged PRs (30d)
47

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.