@@ -343,9 +343,8 @@ pub struct TargetOptions {
343343 pub staticlib_suffix : String ,
344344 /// OS family to use for conditional compilation. Valid options: "unix", "windows".
345345 pub target_family : Option < String > ,
346- /// Whether the target toolchain is like OpenBSD's.
347- /// Only useful for compiling against OpenBSD, for configuring abi when returning a struct.
348- pub is_like_openbsd : bool ,
346+ /// Whether the target toolchain's ABI supports returning small structs as an integer.
347+ pub abi_return_struct_as_int : bool ,
349348 /// Whether the target toolchain is like macOS's. Only useful for compiling against iOS/macOS,
350349 /// in particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
351350 pub is_like_osx : bool ,
@@ -501,7 +500,7 @@ impl Default for TargetOptions {
501500 staticlib_prefix : "lib" . to_string ( ) ,
502501 staticlib_suffix : ".a" . to_string ( ) ,
503502 target_family : None ,
504- is_like_openbsd : false ,
503+ abi_return_struct_as_int : false ,
505504 is_like_osx : false ,
506505 is_like_solaris : false ,
507506 is_like_windows : false ,
@@ -756,7 +755,7 @@ impl Target {
756755 key ! ( staticlib_prefix) ;
757756 key ! ( staticlib_suffix) ;
758757 key ! ( target_family, optional) ;
759- key ! ( is_like_openbsd , bool ) ;
758+ key ! ( abi_return_struct_as_int , bool ) ;
760759 key ! ( is_like_osx, bool ) ;
761760 key ! ( is_like_solaris, bool ) ;
762761 key ! ( is_like_windows, bool ) ;
@@ -954,7 +953,7 @@ impl ToJson for Target {
954953 target_option_val ! ( staticlib_prefix) ;
955954 target_option_val ! ( staticlib_suffix) ;
956955 target_option_val ! ( target_family) ;
957- target_option_val ! ( is_like_openbsd ) ;
956+ target_option_val ! ( abi_return_struct_as_int ) ;
958957 target_option_val ! ( is_like_osx) ;
959958 target_option_val ! ( is_like_solaris) ;
960959 target_option_val ! ( is_like_windows) ;
0 commit comments