File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ fn main() {
16
16
}
17
17
18
18
if env:: var ( "LIBC_CI" ) . is_ok ( ) {
19
+ if let Some ( 11 ) = which_freebsd ( ) {
20
+ println ! ( "cargo:rustc-cfg=freebsd11" ) ;
21
+ }
19
22
if let Some ( 12 ) = which_freebsd ( ) {
20
23
println ! ( "cargo:rustc-cfg=freebsd12" ) ;
21
24
}
Original file line number Diff line number Diff line change @@ -1450,15 +1450,12 @@ fn test_freebsd(target: &str) {
1450
1450
1451
1451
let freebsd_ver = which_freebsd ( ) ;
1452
1452
1453
- if let Some ( 12 ) = freebsd_ver {
1454
- // If the host is FreeBSD 12, run FreeBSD 12 tests
1455
- cfg. cfg ( "freebsd12" , None ) ;
1456
- }
1457
-
1458
- if let Some ( 13 ) = freebsd_ver {
1459
- // If the host is FreeBSD 12, run FreeBSD 12 tests
1460
- cfg. cfg ( "freebsd13" , None ) ;
1461
- }
1453
+ match freebsd_ver {
1454
+ Some ( 11 ) => cfg. cfg ( "freebsd11" , None ) ,
1455
+ Some ( 12 ) => cfg. cfg ( "freebsd12" , None ) ,
1456
+ Some ( 13 ) => cfg. cfg ( "freebsd13" , None ) ,
1457
+ _ => & mut cfg
1458
+ } ;
1462
1459
1463
1460
// Required for `getline`:
1464
1461
cfg. define ( "_WITH_GETLINE" , None ) ;
You can’t perform that action at this time.
0 commit comments