Skip to content

Commit 5612c5a

Browse files
committed
aix: error on unsupported target
Add `compile_error` macro invocation when declaring architecture-specific definitions. This should ensure any new target either gets proper review of the required types or otherwise provides its target-specific definitions and bindings.
1 parent 31a8fa1 commit 5612c5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/unix/aix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,5 +3344,7 @@ cfg_if! {
33443344
if #[cfg(target_arch = "powerpc64")] {
33453345
mod powerpc64;
33463346
pub use self::powerpc64::*;
3347+
} else {
3348+
core::compile_error!("unsupported target");
33473349
}
33483350
}

0 commit comments

Comments
 (0)