Skip to content

Commit 9124caf

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 9124caf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

classes/cargo_bin.bbclass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ cargo_bin_do_compile() {
104104
export LDFLAGS=""
105105
export RUSTFLAGS="${RUSTFLAGS}"
106106
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK}"
107+
export https_proxy="${https_proxy}"
108+
export http_proxy="${http_proxy}"
109+
export no_proxy="${no_proxy}"
107110

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

0 commit comments

Comments
 (0)