Skip to content

Commit 1269ad1

Browse files
committed
Fix build errors on arm*-linux-gnueabi
I removed std::mem, but We need it.
1 parent 9e04723 commit 1269ad1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4260,6 +4260,11 @@ fn muldf3() {
42604260
target_os = "linux",
42614261
test))]
42624262
use core::mem;
4263+
#[cfg(not(all(target_arch = "arm",
4264+
not(any(target_env = "gnu", target_env = "musl")),
4265+
target_os = "linux",
4266+
test)))]
4267+
use std::mem;
42634268
use compiler_builtins::float::mul::__mulsf3vfp;
42644269
42654270
fn mk_f32(x: u32) -> f32 {
@@ -4342,6 +4347,11 @@ fn mulsf3vfp() {
43424347
target_os = "linux",
43434348
test))]
43444349
use core::mem;
4350+
#[cfg(not(all(target_arch = "arm",
4351+
not(any(target_env = "gnu", target_env = "musl")),
4352+
target_os = "linux",
4353+
test)))]
4354+
use std::mem;
43454355
use compiler_builtins::float::mul::__muldf3vfp;
43464356
43474357
fn mk_f64(x: u64) -> f64 {
@@ -4609,6 +4619,11 @@ fn divdf3() {
46094619
target_os = "linux",
46104620
test))]
46114621
use core::mem;
4622+
#[cfg(not(all(target_arch = "arm",
4623+
not(any(target_env = "gnu", target_env = "musl")),
4624+
target_os = "linux",
4625+
test)))]
4626+
use std::mem;
46124627
use compiler_builtins::float::div::__divsf3vfp;
46134628
46144629
fn mk_f32(x: u32) -> f32 {
@@ -4695,6 +4710,11 @@ fn divsf3vfp() {
46954710
target_os = "linux",
46964711
test))]
46974712
use core::mem;
4713+
#[cfg(not(all(target_arch = "arm",
4714+
not(any(target_env = "gnu", target_env = "musl")),
4715+
target_os = "linux",
4716+
test)))]
4717+
use std::mem;
46984718
use compiler_builtins::float::div::__divdf3vfp;
46994719
47004720
fn mk_f64(x: u64) -> f64 {

0 commit comments

Comments
 (0)