Description
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?