]> git.lizzy.rs Git - rust.git/commitdiff
FreeBSD uses Clang which can return small structs as an integer.
authorBryan Drewery <bryan@shatow.net>
Mon, 26 Feb 2018 18:21:35 +0000 (10:21 -0800)
committerBryan Drewery <bryan@shatow.net>
Mon, 26 Feb 2018 18:21:55 +0000 (10:21 -0800)
src/librustc_back/target/freebsd_base.rs

index a0f84a6ab04959a23980467c0a049506dca2ada7..291b22768998c556f3f98deb1a1fab37088f7463 100644 (file)
@@ -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()
     }
 }