Support building on 32-bit ARM

This commit is contained in:
Ben Wolsieffer 2022-12-06 23:34:05 -05:00
parent 1955bdda3b
commit 06b587ddb2
1 changed files with 8 additions and 2 deletions

View File

@ -123,10 +123,16 @@ macro_rules! primitive_sequence {
primitive_sequence!(rosidl_runtime_c__float32, f32);
primitive_sequence!(rosidl_runtime_c__float64, f64);
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
#[cfg(any(
all(target_os = "macos", target_arch = "aarch64"),
target_arch = "arm"
))]
primitive_sequence!(rosidl_runtime_c__long_double, f64);
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
#[cfg(not(any(
all(target_os = "macos", target_arch = "aarch64"),
target_arch = "arm"
)))]
primitive_sequence!(rosidl_runtime_c__long_double, u128);
primitive_sequence!(rosidl_runtime_c__char, i8);