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 @@ -62,10 +62,6 @@ CARGO_BUILD_FLAGS = "\
6262 ${EXTRA_CARGO_FLAGS} \
6363"
6464
65- cargo_bin_do_fetch () {
66- cargo fetch
67- }
68-
6965cargo_bin_do_configure () {
7066 mkdir -p "${B} "
7167 mkdir -p "${CARGO_HOME} "
@@ -99,6 +95,13 @@ cargo_bin_do_configure() {
9995 chmod +x "${WRAPPER_DIR} /linker-native-wrapper.sh"
10096}
10197
98+ addtask do_cargo_fetch after do_configure before do_compile
99+ do_cargo_fetch [network ] = "1"
100+ do_cargo_fetch [dirs ]= "${B} "
101+ cargo_bin_do_cargo_fetch () {
102+ cargo fetch --manifest -path ${CARGO_MANIFEST_PATH}
103+ }
104+
102105cargo_bin_do_compile () {
103106 export TARGET_CC = "${WRAPPER_DIR} /cc-wrapper.sh"
104107 export TARGET_CXX = "${WRAPPER_DIR} /cxx-wrapper.sh"
@@ -176,4 +179,4 @@ cargo_bin_do_install() {
176179 fi
177180}
178181
179- EXPORT_FUNCTIONS do_configure do_compile do_install
182+ EXPORT_FUNCTIONS do_configure do_cargo_fetch do_compile do_install
You can’t perform that action at this time.
0 commit comments