Skip to content

Commit d10eefc

Browse files
Tobias KortkampAmanieu
Tobias Kortkamp
authored andcommitted
Unbreak non-x86 build on FreeBSD
error[E0432]: unresolved import `self::arm::check_for` --> src/libstd/../stdarch/crates/std_detect/src/detect/os/freebsd/mod.rs:11:17 | 11 | pub use self::arm::check_for; | ^^^^^^^^^^^^^^^^^^^^ no `check_for` in `std_detect::detect::os::arm` error[E0425]: cannot find value `detect_features` in module `self::os` --> src/libstd/../stdarch/crates/std_detect/src/detect/mod.rs:121:37 | 121 | cache::test(x as u32, self::os::detect_features) | ^^^^^^^^^^^^^^^ not found in `self::os` | help: possible candidate is found in another module, you can import it into scope | 20 | use crate::std_detect::detect::os::arm::detect_features;
1 parent 4a2dac1 commit d10eefc

File tree

1 file changed

+1
-1
lines changed
  • crates/std_detect/src/detect

1 file changed

+1
-1
lines changed

crates/std_detect/src/detect/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ cfg_if! {
100100
} else if #[cfg(all(target_os = "linux", feature = "use_std"))] {
101101
#[path = "os/linux/mod.rs"]
102102
mod os;
103-
} else if #[cfg(target_os = "freebsd")] {
103+
} else if #[cfg(all(target_os = "freebsd", feature = "use_std"))] {
104104
#[cfg(target_arch = "aarch64")]
105105
#[path = "os/aarch64.rs"]
106106
mod aarch64;

0 commit comments

Comments
 (0)