Skip to content

Commit

Permalink
Merge pull request #120 from xoolive/patch-1
Browse files Browse the repository at this point in the history
Take proxy environment variables into account
  • Loading branch information
Dirreke authored Nov 26, 2024
2 parents faabaff + 60a1926 commit 9850858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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()
}

0 comments on commit 9850858

Please sign in to comment.