Commit 4f7204b
committed
build.rs: use
Cargo automatically registers environment variable as dependency if `env!`
or `option_env!` is used, while `std::env::var` would require a manual
`cargo:rerun-if-env-changed` print. Thus switch to use the macro.
Signed-off-by: Gary Guo <gary@garyguo.net>option_env! to register env variable dependency1 parent 0ce5e88 commit 4f7204b
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments