Commit 08528d6
Use runtime env in build script (#17)
While build.rs runtime and compile-time environment coincide when using
cargo, they may not when using other build systems (notably bazel, which
is therefore unable to build a project depending on this crate).
As explained in [the docs][], build scripts should get their inputs from
the environment at runtime, not during compilation.
[the docs]:https://doc.rust-lang.org/cargo/reference/build-scripts.html#inputs-to-the-build-script
Co-authored-by: Paolo Tranquilli <[email protected]>1 parent 9ebb1db commit 08528d6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments