Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take proxy environment variables into account #120

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ They can be set as environment variables for `cargo build` using the `OPENBLAS_`
prefix as follows: `OPENBLAS_CC`, `OPENBLAS_FC`, `OPENBLAS_HOSTCC`, and
`OPENBLAS_TARGET`.

## Proxy issues

The `openblas-src` crate will detect and use proxy settings from your environment variables, such as `http_proxy` and `https_proxy` to download necessary dependencies.

## Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a
Expand Down
1 change: 1 addition & 0 deletions openblas-build/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ fn get_agent() -> ureq::Agent {
.tls_connector(std::sync::Arc::new(
native_tls::TlsConnector::new().expect("failed to create TLS connector"),
))
.try_proxy_from_env(true)
.build()
}
Loading