Skip to content

Commit

Permalink
use fallback implementation in Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and seanmonstar committed Mar 29, 2022
1 parent 5654959 commit 2ec151d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ fn enable_simd(/*version: Version*/) {
println!("cargo:warning=building for no_std disables httparse SIMD");
return;
}
if env::var_os("CARGO_CFG_MIRI").is_some() {
println!("cargo:warning=building for Miri disables httparse SIMD");
return;
}

let env_disable = "CARGO_CFG_HTTPARSE_DISABLE_SIMD";
if var_is(env_disable, "1") {
Expand Down

0 comments on commit 2ec151d

Please sign in to comment.