Skip to content

Commit 4eed0fe

Browse files
committed
Fix arm cfg in float add impl
1 parent 27b3c57 commit 4eed0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/float/add.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ add!(__addsf3: f32);
184184
add!(__adddf3: f64);
185185

186186
// FIXME: Implement these using aliases
187-
#[cfg(arm)]
187+
#[cfg(target_arch = "arm")]
188188
#[cfg_attr(not(test), no_mangle)]
189189
pub extern fn __aeabi_dadd(a: f64, b: f64) -> f64 {
190190
__adddf3(a, b)
191191
}
192192

193-
#[cfg(arm)]
193+
#[cfg(target_arch = "arm")]
194194
#[cfg_attr(not(test), no_mangle)]
195195
pub extern fn __aeabi_dadd(a: f32, b: f32) -> f32 {
196196
__addsf3(a, b)

0 commit comments

Comments
 (0)