@@ -13,12 +13,12 @@ const SNAPPY_VERSION: &'static str = "1.1.2";
13
13
const LEVELDB_VERSION : & ' static str = "1.18" ;
14
14
15
15
16
- fn build_snappy ( is_freebsd : bool ) {
16
+ fn build_snappy ( is_bsd : bool ) {
17
17
// Step 1: Build snappy
18
18
// ----------------------------------------------------------------------
19
19
let snappy_path = Path :: new ( "deps" )
20
20
. join ( format ! ( "snappy-{}" , SNAPPY_VERSION ) ) ;
21
- let make = if is_freebsd { "gmake" } else { "make" } ;
21
+ let make = if is_bsd { "gmake" } else { "make" } ;
22
22
23
23
// Clean the build directory first.
24
24
println ! ( "[snappy] Cleaning" ) ;
@@ -47,12 +47,12 @@ fn build_snappy(is_freebsd: bool) {
47
47
res. ok ( ) . expect ( "copy of output files failed" ) ;
48
48
}
49
49
50
- fn build_leveldb ( with_snappy : bool , is_freebsd : bool ) {
50
+ fn build_leveldb ( with_snappy : bool , is_bsd : bool ) {
51
51
// Step 1: Build LevelDB
52
52
// ----------------------------------------------------------------------
53
53
let leveldb_path = Path :: new ( "deps" )
54
54
. join ( format ! ( "leveldb-{}" , LEVELDB_VERSION ) ) ;
55
- let make = if is_freebsd { "gmake" } else { "make" } ;
55
+ let make = if is_bsd { "gmake" } else { "make" } ;
56
56
57
57
// Clean the build directory first.
58
58
println ! ( "[leveldb] Cleaning" ) ;
@@ -121,11 +121,11 @@ fn main() {
121
121
println ! ( "[build] Started" ) ;
122
122
123
123
let have_snappy = env:: var ( "CARGO_FEATURE_SNAPPY" ) . is_ok ( ) ;
124
- let is_freebsd = env:: var ( "TARGET" ) . unwrap ( ) . ends_with ( "freebsd " ) ;
124
+ let is_bsd = env:: var ( "TARGET" ) . unwrap ( ) . ends_with ( "bsd " ) ;
125
125
126
126
// If we have the appropriate feature, then we build snappy.
127
127
if have_snappy {
128
- build_snappy ( is_freebsd ) ;
128
+ build_snappy ( is_bsd ) ;
129
129
}
130
130
131
131
// Copy the build_detect_platform file into the appropriate place.
@@ -178,7 +178,7 @@ fn main() {
178
178
fs:: set_permissions ( & detect_path, perms) . ok ( ) . expect ( "permissions could not be set" ) ;
179
179
180
180
// Build LevelDB
181
- build_leveldb ( have_snappy, is_freebsd ) ;
181
+ build_leveldb ( have_snappy, is_bsd ) ;
182
182
183
183
// Print the appropriate linker flags
184
184
let out_dir = env:: var ( "OUT_DIR" ) . ok ( ) . expect ( "OUT_DIR missing" ) ;
0 commit comments