Fix build errors on arm*-linux-gnueabi
I removed std::mem, but We need it.
This commit is contained in:
parent
9e04723812
commit
1269ad1438
20
build.rs
20
build.rs
|
@ -4260,6 +4260,11 @@ fn muldf3() {
|
||||||
target_os = "linux",
|
target_os = "linux",
|
||||||
test))]
|
test))]
|
||||||
use core::mem;
|
use core::mem;
|
||||||
|
#[cfg(not(all(target_arch = "arm",
|
||||||
|
not(any(target_env = "gnu", target_env = "musl")),
|
||||||
|
target_os = "linux",
|
||||||
|
test)))]
|
||||||
|
use std::mem;
|
||||||
use compiler_builtins::float::mul::__mulsf3vfp;
|
use compiler_builtins::float::mul::__mulsf3vfp;
|
||||||
|
|
||||||
fn mk_f32(x: u32) -> f32 {
|
fn mk_f32(x: u32) -> f32 {
|
||||||
|
@ -4342,6 +4347,11 @@ fn mulsf3vfp() {
|
||||||
target_os = "linux",
|
target_os = "linux",
|
||||||
test))]
|
test))]
|
||||||
use core::mem;
|
use core::mem;
|
||||||
|
#[cfg(not(all(target_arch = "arm",
|
||||||
|
not(any(target_env = "gnu", target_env = "musl")),
|
||||||
|
target_os = "linux",
|
||||||
|
test)))]
|
||||||
|
use std::mem;
|
||||||
use compiler_builtins::float::mul::__muldf3vfp;
|
use compiler_builtins::float::mul::__muldf3vfp;
|
||||||
|
|
||||||
fn mk_f64(x: u64) -> f64 {
|
fn mk_f64(x: u64) -> f64 {
|
||||||
|
@ -4609,6 +4619,11 @@ fn divdf3() {
|
||||||
target_os = "linux",
|
target_os = "linux",
|
||||||
test))]
|
test))]
|
||||||
use core::mem;
|
use core::mem;
|
||||||
|
#[cfg(not(all(target_arch = "arm",
|
||||||
|
not(any(target_env = "gnu", target_env = "musl")),
|
||||||
|
target_os = "linux",
|
||||||
|
test)))]
|
||||||
|
use std::mem;
|
||||||
use compiler_builtins::float::div::__divsf3vfp;
|
use compiler_builtins::float::div::__divsf3vfp;
|
||||||
|
|
||||||
fn mk_f32(x: u32) -> f32 {
|
fn mk_f32(x: u32) -> f32 {
|
||||||
|
@ -4695,6 +4710,11 @@ fn divsf3vfp() {
|
||||||
target_os = "linux",
|
target_os = "linux",
|
||||||
test))]
|
test))]
|
||||||
use core::mem;
|
use core::mem;
|
||||||
|
#[cfg(not(all(target_arch = "arm",
|
||||||
|
not(any(target_env = "gnu", target_env = "musl")),
|
||||||
|
target_os = "linux",
|
||||||
|
test)))]
|
||||||
|
use std::mem;
|
||||||
use compiler_builtins::float::div::__divdf3vfp;
|
use compiler_builtins::float::div::__divdf3vfp;
|
||||||
|
|
||||||
fn mk_f64(x: u64) -> f64 {
|
fn mk_f64(x: u64) -> f64 {
|
||||||
|
|
Loading…
Reference in New Issue