]> git.proxmox.com Git - rustc.git/blobdiff - library/stdarch/crates/std_detect/src/detect/mod.rs
Merge 1.70 into proxmox/bookworm
[rustc.git] / library / stdarch / crates / std_detect / src / detect / mod.rs
index 9a135c90a39a26eabf356d7706f932559a28f51b..db7018232d40fc46aa00beb6dfe4749260b70e80 100644 (file)
@@ -56,6 +56,12 @@ cfg_if! {
         mod aarch64;
         #[path = "os/freebsd/mod.rs"]
         mod os;
+    } else if #[cfg(all(target_os = "openbsd", target_arch = "aarch64", feature = "libc"))] {
+        #[allow(dead_code)] // we don't use code that calls the mrs instruction.
+        #[path = "os/aarch64.rs"]
+        mod aarch64;
+        #[path = "os/openbsd/aarch64.rs"]
+        mod os;
     } else if #[cfg(all(target_os = "windows", target_arch = "aarch64"))] {
         #[path = "os/windows/aarch64.rs"]
         mod os;