build.rs@114ecdf63ce5
build.rs
Wed, 03 Sep 2025 19:37:15 -0500
- author
- Tuomo Valkonen <tuomov@iki.fi>
- date
- Wed, 03 Sep 2025 19:37:15 -0500
- branch
- dev
- changeset 169
- 114ecdf63ce5
- parent 94
-
1f19c6bbf07b
- permissions
- -rw-r--r--
Can only do nalgebra matrix ops for OMatrix (but ok through Instance) to avoid having to specify types
use rustc_version::{version_meta, Channel};
fn main() {
// Tell rust that nightly flag exists
println!("cargo::rustc-check-cfg=cfg(nightly)");
if version_meta().unwrap().channel == Channel::Nightly {
// … and set it for nightly.
println!("cargo:rustc-cfg=nightly");
}
}