hyperlight-dev / hyperlight-dev/hyperlight

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

Ouverte
#969 0 commentaires 0 réactions 1 personne assignée Réclamée par @jprendes Voir sur GitHub
lifecycle/confirmed
Langage dominant
Rust
Étoiles
4.7k
Forks
208
Merge moyen
1 j 7 h
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.