The logic is stolen from cmake-rs, and it is important to follow it as we will need to look for CMAKE_TOOLCHAIN_FILE the same way cmake-rs does. When checking for env variable BORING_BSSL_PATH during a cross build for target x86_64-unknown-linux-gnu, boring-sys build script will attempt to read: BORING_BSSL_PATH_x86_64-unknown-linux-gnu BORING_BSSL_PATH_x86_64_unknown_linux_gnu TARGET_BORING_BSSL_PATH BORING_BSSL_PATH |
||
|---|---|---|
| .. | ||
| config.rs | ||
| main.rs | ||