Skip to content

Commit 062a94e

Browse files
committed
Add iOS support
1 parent e577fb6 commit 062a94e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub extern fn libdiffuzz_init_config() {
2828
CONF_ALLOC_EXTRA_MEM.store(alloc_extra_mem, atomic::Ordering::Relaxed);
2929
}
3030

31-
#[cfg_attr(target_os = "macos", link_section = "__DATA,__mod_init_func")]
32-
#[cfg_attr(not(target_os = "macos"), link_section = ".ctors")]
31+
#[cfg_attr(any(target_os = "macos", target_os = "ios"), link_section = "__DATA,__mod_init_func")]
32+
#[cfg_attr(not(any(target_os = "macos", target_os = "ios")), link_section = ".ctors")]
3333
pub static CONSTRUCTOR: extern fn() = libdiffuzz_init_config;
3434

3535
/// Gets then increments MEM_INIT

0 commit comments

Comments
 (0)