@@ -346,9 +346,8 @@ pub struct TargetOptions {
346
346
pub staticlib_suffix : String ,
347
347
/// OS family to use for conditional compilation. Valid options: "unix", "windows".
348
348
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 ,
352
351
/// Whether the target toolchain is like macOS's. Only useful for compiling against iOS/macOS,
353
352
/// in particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
354
353
pub is_like_osx : bool ,
@@ -504,7 +503,7 @@ impl Default for TargetOptions {
504
503
staticlib_prefix : "lib" . to_string ( ) ,
505
504
staticlib_suffix : ".a" . to_string ( ) ,
506
505
target_family : None ,
507
- is_like_openbsd : false ,
506
+ abi_return_struct_as_int : false ,
508
507
is_like_osx : false ,
509
508
is_like_solaris : false ,
510
509
is_like_windows : false ,
@@ -759,7 +758,7 @@ impl Target {
759
758
key ! ( staticlib_prefix) ;
760
759
key ! ( staticlib_suffix) ;
761
760
key ! ( target_family, optional) ;
762
- key ! ( is_like_openbsd , bool ) ;
761
+ key ! ( abi_return_struct_as_int , bool ) ;
763
762
key ! ( is_like_osx, bool ) ;
764
763
key ! ( is_like_solaris, bool ) ;
765
764
key ! ( is_like_windows, bool ) ;
@@ -957,7 +956,7 @@ impl ToJson for Target {
957
956
target_option_val ! ( staticlib_prefix) ;
958
957
target_option_val ! ( staticlib_suffix) ;
959
958
target_option_val ! ( target_family) ;
960
- target_option_val ! ( is_like_openbsd ) ;
959
+ target_option_val ! ( abi_return_struct_as_int ) ;
961
960
target_option_val ! ( is_like_osx) ;
962
961
target_option_val ! ( is_like_solaris) ;
963
962
target_option_val ! ( is_like_windows) ;
0 commit comments