|
|
@ -81,7 +81,7 @@ fn build_rocksdb() { |
|
|
|
|
|
|
|
|
|
|
|
let mut lib_sources = include_str!("rocksdb_lib_sources.txt") |
|
|
|
let mut lib_sources = include_str!("rocksdb_lib_sources.txt") |
|
|
|
.trim() |
|
|
|
.trim() |
|
|
|
.split("\n") |
|
|
|
.split('\n') |
|
|
|
.map(str::trim) |
|
|
|
.map(str::trim) |
|
|
|
.collect::<Vec<&'static str>>(); |
|
|
|
.collect::<Vec<&'static str>>(); |
|
|
|
|
|
|
|
|
|
|
@ -205,11 +205,10 @@ fn build_lz4() { |
|
|
|
|
|
|
|
|
|
|
|
compiler.opt_level(3); |
|
|
|
compiler.opt_level(3); |
|
|
|
|
|
|
|
|
|
|
|
match env::var("TARGET").unwrap().as_str() { |
|
|
|
let target = env::var("TARGET").unwrap(); |
|
|
|
"i686-pc-windows-gnu" => { |
|
|
|
|
|
|
|
compiler.flag("-fno-tree-vectorize"); |
|
|
|
if &target == "i686-pc-windows-gnu" { |
|
|
|
} |
|
|
|
compiler.flag("-fno-tree-vectorize"); |
|
|
|
_ => {} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
compiler.compile("liblz4.a"); |
|
|
|
compiler.compile("liblz4.a"); |
|
|
|