File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ CARGO_BUILD_FLAGS = "\
5454 ${EXTRA_CARGO_FLAGS} \
5555"
5656
57- cargo_bin_do_fetch () {
58- cargo fetch
59- }
60-
6157cargo_bin_do_configure () {
6258 mkdir -p "${B} "
6359 mkdir -p "${CARGO_HOME} "
@@ -91,6 +87,13 @@ cargo_bin_do_configure() {
9187 chmod +x "${WRAPPER_DIR} /linker-native-wrapper.sh"
9288}
9389
90+ addtask do_cargo_fetch after do_configure before do_compile
91+ do_cargo_fetch [network ] = "1"
92+ do_cargo_fetch [dirs ]= "${B} "
93+ cargo_bin_do_cargo_fetch () {
94+ cargo fetch --manifest -path ${CARGO_MANIFEST_PATH}
95+ }
96+
9497cargo_bin_do_compile () {
9598 export TARGET_CC = "${WRAPPER_DIR} /cc-wrapper.sh"
9699 export TARGET_CXX = "${WRAPPER_DIR} /cxx-wrapper.sh"
@@ -166,4 +169,4 @@ cargo_bin_do_install() {
166169 fi
167170}
168171
169- EXPORT_FUNCTIONS do_configure do_compile do_install
172+ EXPORT_FUNCTIONS do_configure do_cargo_fetch do_compile do_install
You can’t perform that action at this time.
0 commit comments