Skip to content

Commit 279e5b0

Browse files
committed
FreeBSD uses Clang which can return small structs as an integer.
1 parent 2026453 commit 279e5b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_back/target/freebsd_base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub fn opts() -> TargetOptions {
3636
eliminate_frame_pointer: false, // FIXME 43575
3737
relro_level: RelroLevel::Full,
3838
exe_allocation_crate: super::maybe_jemalloc(),
39+
abi_return_struct_as_int: true,
3940
.. Default::default()
4041
}
4142
}

0 commit comments

Comments
 (0)