Skip to content

Commit

Permalink
build: replace 'no_bssl' feature with 'boringssl-vendored'
Browse files Browse the repository at this point in the history
The point of the feature is to build the vendored BoringSSL (i.e. we
would still use BoringSSL, just not build it), so this name makes more
sense.
  • Loading branch information
ghedo committed Aug 17, 2019
1 parent 6240114 commit a5da19f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ exclude = [
]

[features]
no_bssl = []
default = ["boringssl-vendored"]

boringssl-vendored = []

[package.metadata.docs.rs]
features = ["no_bssl"]
default-features = false

[build-dependencies]
cmake = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn get_boringssl_cmake_config() -> cmake::Config {
}

fn main() {
if !cfg!(feature = "no_bssl") {
if cfg!(feature = "boringssl-vendored") {
let bssl_dir = std::env::var("QUICHE_BSSL_PATH").unwrap_or_else(|_| {
get_boringssl_cmake_config()
.build_target("bssl")
Expand Down

0 comments on commit a5da19f

Please sign in to comment.