Skip to content

Commit

Permalink
FreeBSD uses Clang which can return small structs as an integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery committed Feb 26, 2018
1 parent 2026453 commit 279e5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_back/target/freebsd_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub fn opts() -> TargetOptions {
eliminate_frame_pointer: false, // FIXME 43575
relro_level: RelroLevel::Full,
exe_allocation_crate: super::maybe_jemalloc(),
abi_return_struct_as_int: true,
.. Default::default()
}
}

0 comments on commit 279e5b0

Please sign in to comment.