Skip to content

Commit

Permalink
Add proxy definition for download
Browse files Browse the repository at this point in the history
Depending of the network, proxies can
be necessary to go on internet
To allow download, keep proxies
environment variable

Signed-off-by: Maximilien Baumann <[email protected]>
  • Loading branch information
maximilien-baumann committed Feb 3, 2025
1 parent 5401611 commit 86a8b8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/cargo_bin.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ cargo_bin_do_compile() {
export LDFLAGS=""
export RUSTFLAGS="${RUSTFLAGS}"
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK}"
export http_proxy="${http_proxy}"
export https_proxy="${https_proxy}"
export ftp_proxy="${ftp_proxy}"
export ALL_PROXY="${ALL_PROXY}"
export all_proxy="${all_proxy}"
export no_proxy="${no_proxy}"

# This "DO_NOT_USE_THIS" option of cargo is currently the only way to
# configure a different linker for host and target builds when RUST_BUILD ==
Expand Down

0 comments on commit 86a8b8c

Please sign in to comment.