mirror of
https://github.com/openharmony/third_party_rust_rust-openssl.git
synced 2026-07-24 23:25:41 -04:00
bf40938ccd
Signed-off-by: peizhe <472708703@qq.com>
14 lines
346 B
Rust
14 lines
346 B
Rust
#![allow(clippy::inconsistent_digit_grouping, clippy::unusual_byte_groupings)]
|
|
|
|
use std::env;
|
|
|
|
fn main() {
|
|
if let Ok(version) = env::var("DEP_OPENSSL_VERSION_NUMBER") {
|
|
let version = u64::from_str_radix(&version, 16).unwrap();
|
|
|
|
if version >= 0x3_00_00_00_0 {
|
|
println!("cargo:rustc-cfg=ossl300");
|
|
}
|
|
}
|
|
}
|