Update src/doc/src/reference/build-script-examples.md

Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
This commit is contained in:
Yuri Astrakhan 2024-10-02 23:59:40 -04:00 committed by GitHub
parent 3654e61843
commit f64f11d518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -440,7 +440,7 @@ script looks something [like
this](https://github.com/sfackler/rust-openssl/blob/dc72a8e2c429e46c275e528b61a733a66e7877fc/openssl-sys/build/main.rs#L216):
```rust,ignore
println!("cargo:version_number={openssl_version:x}");
println!("cargo::metadata=version_number={openssl_version:x}");
```
This instruction causes the `DEP_OPENSSL_VERSION_NUMBER` environment variable