We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee8a16 commit 6a4fe85Copy full SHA for 6a4fe85
lmdb-master3-sys/build.rs
@@ -42,13 +42,13 @@ fn main() {
42
.flag_if_supported("-Wbad-function-cast")
43
.flag_if_supported("-Wuninitialized");
44
45
- if env::var("CARGO_FEATURE_WITH_ASAN").is_ok() {
+ if cfg!(feature = "with-asan") {
46
builder.flag("-fsanitize=address");
47
}
48
49
- if env::var("CARGO_FEATURE_WITH_FUZZER").is_ok() {
+ if cfg!(feature = "with-fuzzer") {
50
builder.flag("-fsanitize=fuzzer");
51
- } else if env::var("CARGO_FEATURE_WITH_FUZZER_NO_LINK").is_ok() {
+ } else if cfg!(feature = "with-fuzzer-no-link") {
52
builder.flag("-fsanitize=fuzzer-no-link");
53
54
0 commit comments