u-cc-627
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 8 Mar 2022 10:51:18 +0000 (10:51 +0000)
committerXimin Luo <infinity0@debian.org>
Tue, 8 Mar 2022 10:51:18 +0000 (10:51 +0000)
Forwarded: https://github.com/alexcrichton/cc-rs/pull/627

Gbp-Pq: Name u-cc-627.patch

vendor/cc/src/lib.rs

index 2de245717ca13c88b6f57abc55a3a6db170e8324..abc346ca153488d09ed16c53a2af2236da0bfcc2 100644 (file)
@@ -1627,6 +1627,11 @@ impl Build {
                     && target.contains("-linux-")
                 {
                     cmd.args.push("-march=armv7-a".into());
+
+                    if target.ends_with("eabihf") {
+                        // lowest common denominator FPU
+                        cmd.args.push("-mfpu=vfpv3-d16".into());
+                    }
                 }
 
                 // (x86 Android doesn't say "eabi")