Skip to content

Commit 783b2ce

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 5397489 commit 783b2ce

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
@@ -106,6 +106,12 @@ cargo_bin_do_compile() {
106106
export LDFLAGS=""
107107
export RUSTFLAGS="${RUSTFLAGS}"
108108
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK}"
109+
export http_proxy="${http_proxy}"
110+
export https_proxy="${https_proxy}"
111+
export ftp_proxy="${ftp_proxy}"
112+
export ALL_PROXY="${ALL_PROXY}"
113+
export all_proxy="${all_proxy}"
114+
export no_proxy="${no_proxy}"
109115

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

0 commit comments

Comments
 (0)