Check to set `CMAKE_TRY_COMPILE_TARGET_TYPE` too restrictive
MasterAwesome opened this issue · 1 comments
MasterAwesome commented
rust-mbedtls/mbedtls-sys/build/cmake.rs
Lines 35 to 42 in 4ff64a0
Targets don't necessarily end with none-eabi
for example, if I wanted to compile for aarch64-unknown-none
using CFLAGS='-I <my_system_headers>' CC=clang cargo b --target aarch64-unknown-none
this fails. I think this must be configurable instead.
Removing this check, for the same command above allows me to run mbedtls
code on baremetal aarch64.
Taowyoo commented
What solution you prefer? Make it configurable through env var?
Or could you create a PR for fixing this?