We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ee69a commit 404d4a5Copy full SHA for 404d4a5
build.rs
@@ -7,7 +7,9 @@ fn main() {
7
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
8
let name = env::var("CARGO_PKG_NAME").unwrap();
9
10
- let native_compilation = host_triple == target;
+ if host_triple == target {
11
+ println!("cargo:rustc-cfg=native");
12
+ }
13
14
if target.starts_with("thumb") {
15
let suffix = if env::var_os("CARGO_FEATURE_LINKER_PLUGIN_LTO").is_some() {
@@ -46,7 +48,7 @@ fn main() {
46
48
println!("cargo:rustc-cfg=armv8m_main");
47
49
}
50
- if native_compilation {
- println!("cargo:rustc-cfg=native");
51
+ if target.ends_with("-eabihf") {
52
+ println!("cargo:rustc-cfg=has_fpu");
53
54
0 commit comments