diff options
| author | Henry <mail@henrygressmann.de> | 2026-05-04 19:25:22 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-05-04 19:25:22 +0200 |
| commit | c0b356b025ef93eb3c1378c203858c3a7486f398 (patch) | |
| tree | 2051cd39b455351c54d7c0ea5e608b22d98de5ab /crates/parser/build.rs | |
| parent | 2aa1f31106b9c95500633f5bd9d5f041d408d3e3 (diff) | |
chore: simplify parser & reduce allocations
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/build.rs')
| -rw-r--r-- | crates/parser/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/parser/build.rs b/crates/parser/build.rs index d5c6dec..6b3f385 100644 --- a/crates/parser/build.rs +++ b/crates/parser/build.rs @@ -3,7 +3,7 @@ use std::env; fn main() { println!("cargo::rustc-check-cfg=cfg(parallel_parser)"); - if env::var("CARGO_FEATURE_PARALLEL").is_err() { + if env::var_os("CARGO_FEATURE_PARALLEL").is_none() { return; } @@ -11,6 +11,6 @@ fn main() { let os = env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); if !arch.starts_with("wasm") && os != "unknown" && os != "none" { - println!("cargo:rustc-cfg=parallel_parser"); + println!("cargo::rustc-cfg=parallel_parser"); } } |
