@@ -346,9 +346,8 @@ pub struct TargetOptions {
346346 pub staticlib_suffix : String ,
347347 /// OS family to use for conditional compilation. Valid options: "unix", "windows".
348348 pub target_family : Option < String > ,
349- /// Whether the target toolchain is like OpenBSD's.
350- /// Only useful for compiling against OpenBSD, for configuring abi when returning a struct.
351- pub is_like_openbsd : bool ,
349+ /// Whether the target toolchain's ABI supports returning small structs as an integer.
350+ pub abi_return_struct_as_int : bool ,
352351 /// Whether the target toolchain is like macOS's. Only useful for compiling against iOS/macOS,
353352 /// in particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
354353 pub is_like_osx : bool ,
@@ -504,7 +503,7 @@ impl Default for TargetOptions {
504503 staticlib_prefix : "lib" . to_string ( ) ,
505504 staticlib_suffix : ".a" . to_string ( ) ,
506505 target_family : None ,
507- is_like_openbsd : false ,
506+ abi_return_struct_as_int : false ,
508507 is_like_osx : false ,
509508 is_like_solaris : false ,
510509 is_like_windows : false ,
@@ -759,7 +758,7 @@ impl Target {
759758 key ! ( staticlib_prefix) ;
760759 key ! ( staticlib_suffix) ;
761760 key ! ( target_family, optional) ;
762- key ! ( is_like_openbsd , bool ) ;
761+ key ! ( abi_return_struct_as_int , bool ) ;
763762 key ! ( is_like_osx, bool ) ;
764763 key ! ( is_like_solaris, bool ) ;
765764 key ! ( is_like_windows, bool ) ;
@@ -957,7 +956,7 @@ impl ToJson for Target {
957956 target_option_val ! ( staticlib_prefix) ;
958957 target_option_val ! ( staticlib_suffix) ;
959958 target_option_val ! ( target_family) ;
960- target_option_val ! ( is_like_openbsd ) ;
959+ target_option_val ! ( abi_return_struct_as_int ) ;
961960 target_option_val ! ( is_like_osx) ;
962961 target_option_val ! ( is_like_solaris) ;
963962 target_option_val ! ( is_like_windows) ;
0 commit comments