From f6425ae7fa068928ecedeae0b88879cd1542fb2f Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Fri, 2 Jun 2023 13:21:33 +0100 Subject: [PATCH] use linkage = 'weak' for missing intrinsic stub --- esp-wifi/src/common_adapter/mod.rs | 1 + esp-wifi/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/esp-wifi/src/common_adapter/mod.rs b/esp-wifi/src/common_adapter/mod.rs index 376c1073..f4309d6e 100644 --- a/esp-wifi/src/common_adapter/mod.rs +++ b/esp-wifi/src/common_adapter/mod.rs @@ -469,6 +469,7 @@ pub unsafe extern "C" fn strrchr(_s: *const (), _c: u32) -> *const u8 { } #[no_mangle] +#[linkage = "weak"] pub unsafe extern "C" fn floor(_v: f64) -> f64 { todo!("floor") } diff --git a/esp-wifi/src/lib.rs b/esp-wifi/src/lib.rs index 27609ba7..7c49730d 100644 --- a/esp-wifi/src/lib.rs +++ b/esp-wifi/src/lib.rs @@ -1,6 +1,7 @@ #![no_std] #![cfg_attr(target_arch = "xtensa", feature(asm_experimental_arch))] #![feature(c_variadic)] +#![feature(linkage)] #![cfg_attr(feature = "async", feature(async_fn_in_trait))] #![cfg_attr(feature = "async", allow(incomplete_features))]