Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions rocksdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ fn main() {
let target_os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS is set by cargo.");
let target_env = env::var("CARGO_CFG_TARGET_ENV").expect("CARGO_CFG_TARGET_ENV is set by cargo.");

if target_env.contains("msvc") {
cfg.env("SNAPPY_INCLUDE", snappy);

if target_os.contains("windows") {
println!("cargo:rustc-link-lib=dylib={}", "rpcrt4");
println!("cargo:rustc-link-lib=dylib={}", "shlwapi");
}

if target_env.contains("msvc") {
cfg.env("SNAPPY_INCLUDE", snappy);

let features = env::var("CARGO_CFG_TARGET_FEATURE")
.expect("CARGO_CFG_TARGET_FEATURE is set by cargo.");
Expand Down