@@ -44,14 +44,21 @@ fn main() {
44
44
//
45
45
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
46
46
// running tests to ensure that the ABI is correct.
47
- match which_freebsd ( ) {
48
- Some ( 10 ) if libc_ci => set_cfg ( "freebsd10" ) ,
49
- Some ( 11 ) if libc_ci => set_cfg ( "freebsd11" ) ,
50
- Some ( 12 ) if libc_ci || rustc_dep_of_std => set_cfg ( "freebsd12" ) ,
51
- Some ( 13 ) if libc_ci => set_cfg ( "freebsd13" ) ,
52
- Some ( 14 ) if libc_ci => set_cfg ( "freebsd14" ) ,
53
- Some ( 15 ) if libc_ci => set_cfg ( "freebsd15" ) ,
54
- Some ( _) | None => set_cfg ( "freebsd11" ) ,
47
+ let which_freebsd = if libc_ci {
48
+ which_freebsd ( ) . unwrap_or ( 11 )
49
+ } else if rustc_dep_of_std {
50
+ 12
51
+ } else {
52
+ 11
53
+ } ;
54
+ match which_freebsd {
55
+ 10 => set_cfg ( "freebsd10" ) ,
56
+ 11 => set_cfg ( "freebsd11" ) ,
57
+ 12 => set_cfg ( "freebsd12" ) ,
58
+ 13 => set_cfg ( "freebsd13" ) ,
59
+ 14 => set_cfg ( "freebsd14" ) ,
60
+ 15 => set_cfg ( "freebsd15" ) ,
61
+ v => panic ! ( "unsupported FreeBSD version: {}" , v) ,
55
62
}
56
63
57
64
match emcc_version_code ( ) {
0 commit comments