mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
Fix STD compilation for the ESP-IDF target
This commit is contained in:
parent
523be2e05d
commit
495c7b31aa
@ -1448,8 +1448,8 @@ pub fn chroot(dir: &Path) -> io::Result<()> {
|
||||
|
||||
pub use remove_dir_impl::remove_dir_all;
|
||||
|
||||
// Fallback for REDOX
|
||||
#[cfg(target_os = "redox")]
|
||||
// Fallback for REDOX and ESP-IDF
|
||||
#[cfg(any(target_os = "redox", target_os = "espidf"))]
|
||||
mod remove_dir_impl {
|
||||
pub use crate::sys_common::fs::remove_dir_all;
|
||||
}
|
||||
@ -1573,7 +1573,11 @@ mod remove_dir_impl {
|
||||
}
|
||||
|
||||
// Modern implementation using openat(), unlinkat() and fdopendir()
|
||||
#[cfg(not(any(all(target_os = "macos", target_arch = "x86_64"), target_os = "redox")))]
|
||||
#[cfg(not(any(
|
||||
all(target_os = "macos", target_arch = "x86_64"),
|
||||
target_os = "redox",
|
||||
target_os = "espidf"
|
||||
)))]
|
||||
mod remove_dir_impl {
|
||||
use super::{cstr, lstat, Dir, DirEntry, InnerReadDir, ReadDir};
|
||||
use crate::ffi::CStr;
|
||||
|
Loading…
Reference in New Issue
Block a user