Skip to content

Cross-compilation to Yocto breaks after #1225 (1.1.32) #1297

Closed
@tronical

Description

@tronical

I noticed that after #1225 as part of 1.1.32, cross-compilation of the Rust Skia bindings fails when targeting a Yocto environment (say Poky, but could be any distro name / vendor name).

Slightly more concretely, the skia build uses cc to compile some .cpp bindings code and calls cc_build.target(target_str) eventually, where target_str is arm-poky-linux-gnueabi. That's technically the correct target for the gcc Yocto configured/built. The rust target on the other hand is armv7-unknown-linux-gnueabihf.

Should the rust skia bindings build avoid calling set_target(), now that cc also tries to figure out the target from the cargo environment? I'm slightly hesitant here as the rust target is not the same as the one gcc is configured for. Or should cc be extended to parse this triplet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions