u-cc-627
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 22 Oct 2021 22:29:14 +0000 (23:29 +0100)
committerXimin Luo <infinity0@debian.org>
Fri, 22 Oct 2021 22:29:14 +0000 (23:29 +0100)
Forwarded: https://github.com/alexcrichton/cc-rs/pull/627

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

vendor/cc/src/lib.rs

index b62a1da0407dbd6b8b42af6f1f8ca64a28a9c146..e3c5ac86f7edc373fedded09881f171e7feaada0 100644 (file)
@@ -1559,6 +1559,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")