@@ -343,9 +343,8 @@ pub struct TargetOptions {
343
343
pub staticlib_suffix : String ,
344
344
/// OS family to use for conditional compilation. Valid options: "unix", "windows".
345
345
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 ,
349
348
/// Whether the target toolchain is like macOS's. Only useful for compiling against iOS/macOS,
350
349
/// in particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
351
350
pub is_like_osx : bool ,
@@ -501,7 +500,7 @@ impl Default for TargetOptions {
501
500
staticlib_prefix : "lib" . to_string ( ) ,
502
501
staticlib_suffix : ".a" . to_string ( ) ,
503
502
target_family : None ,
504
- is_like_openbsd : false ,
503
+ abi_return_struct_as_int : false ,
505
504
is_like_osx : false ,
506
505
is_like_solaris : false ,
507
506
is_like_windows : false ,
@@ -756,7 +755,7 @@ impl Target {
756
755
key ! ( staticlib_prefix) ;
757
756
key ! ( staticlib_suffix) ;
758
757
key ! ( target_family, optional) ;
759
- key ! ( is_like_openbsd , bool ) ;
758
+ key ! ( abi_return_struct_as_int , bool ) ;
760
759
key ! ( is_like_osx, bool ) ;
761
760
key ! ( is_like_solaris, bool ) ;
762
761
key ! ( is_like_windows, bool ) ;
@@ -954,7 +953,7 @@ impl ToJson for Target {
954
953
target_option_val ! ( staticlib_prefix) ;
955
954
target_option_val ! ( staticlib_suffix) ;
956
955
target_option_val ! ( target_family) ;
957
- target_option_val ! ( is_like_openbsd ) ;
956
+ target_option_val ! ( abi_return_struct_as_int ) ;
958
957
target_option_val ! ( is_like_osx) ;
959
958
target_option_val ! ( is_like_solaris) ;
960
959
target_option_val ! ( is_like_windows) ;
0 commit comments