File tree 1 file changed +1
-8
lines changed 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,11 @@ fn main() {
21
21
//
22
22
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
23
23
// running tests to ensure that the ABI is correct.
24
- #[ cfg( target_os = "freebsd" ) ]
25
24
match which_freebsd ( ) {
26
25
Some ( 11 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd11" ) ,
27
26
Some ( 12 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd12" ) ,
28
27
Some ( 13 ) if libc_ci => println ! ( "cargo:rustc-cfg=freebsd13" ) ,
29
- Some ( _) => println ! ( "cargo:rustc-cfg=freebsd11" ) ,
30
- None =>
31
- /* not FreeBSD - nothing to do here */
32
- {
33
- ( )
34
- }
28
+ Some ( _) | None => println ! ( "cargo:rustc-cfg=freebsd11" ) ,
35
29
}
36
30
37
31
// Rust >= 1.15 supports private module use:
@@ -94,7 +88,6 @@ fn rustc_minor_version() -> Option<u32> {
94
88
otry ! ( pieces. next( ) ) . parse ( ) . ok ( )
95
89
}
96
90
97
- #[ cfg( target_os = "freebsd" ) ]
98
91
fn which_freebsd ( ) -> Option < i32 > {
99
92
let output = std:: process:: Command :: new ( "freebsd-version" ) . output ( ) . ok ( ) ;
100
93
if output. is_none ( ) {
You can’t perform that action at this time.
0 commit comments