corrosion-rs / corrosion

Marrying Rust and CMake - Easy Rust and C/C++ Integration!
https://corrosion-rs.github.io/corrosion/
MIT License
1.02k stars 97 forks source link

Detect OpenHarmony Rust target #510

Closed jschwe closed 2 months ago

jschwe commented 2 months ago

The OpenHarmony SDK contains a CMake toolchain file, which among others sets CMAKE_OHOS_ARCH_ABI. We can use this to automatically infer the correct Rust target.

The SDK can be obtained from the release notes on gitee: https://gitee.com/openharmony/docs/tree/master/en/release-notes