HadrienG2 / hwlocality

Rust bindings to Open MPI Portable Hardware Locality "hwloc" library, covering version 2.0 and above.
MIT License
20 stars 5 forks source link

Use runtime env vars CARGO_CFG_* for probing target, os and flavor in build.rs #94

Closed lu-zero closed 8 months ago

lu-zero commented 8 months ago

build.rs is built for the host system, and the cfg variables are set accordingly, when cross compiling the same information is presented at build script runtime via env vars CARGO_CFG_*.

Cases that may trip: