Commit 005611c
committed
Fix enabling
This commit fixes a minor mistake from bytecodealliance#13053 where `cfg!(fuzzing)`
isn't set for build scripts because `RUSTFLAGS`, where `--cfg fuzzing`
is specified, is only passed to target artifacts, not build scripts.
This means that the lookup must happen via Cargo's set env vars (e.g.
`CARGO_CFG_FUZZING`), not `cfg!(...)`.cfg(gc_zeal) during fuzzing1 parent d5f1b97 commit 005611c
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments