Skip to content

Commit 2ec151d

Browse files
RalfJungseanmonstar
authored andcommitted
use fallback implementation in Miri
1 parent 5654959 commit 2ec151d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ fn enable_simd(/*version: Version*/) {
3939
println!("cargo:warning=building for no_std disables httparse SIMD");
4040
return;
4141
}
42+
if env::var_os("CARGO_CFG_MIRI").is_some() {
43+
println!("cargo:warning=building for Miri disables httparse SIMD");
44+
return;
45+
}
4246

4347
let env_disable = "CARGO_CFG_HTTPARSE_DISABLE_SIMD";
4448
if var_is(env_disable, "1") {

0 commit comments

Comments
 (0)