Skip to content

Commit 86a8b8c

Browse files
Add proxy definition for download
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]>
1 parent 5401611 commit 86a8b8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

classes/cargo_bin.bbclass

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ cargo_bin_do_compile() {
104104
export LDFLAGS=""
105105
export RUSTFLAGS="${RUSTFLAGS}"
106106
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK}"
107+
export http_proxy="${http_proxy}"
108+
export https_proxy="${https_proxy}"
109+
export ftp_proxy="${ftp_proxy}"
110+
export ALL_PROXY="${ALL_PROXY}"
111+
export all_proxy="${all_proxy}"
112+
export no_proxy="${no_proxy}"
107113

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

0 commit comments

Comments
 (0)