Skip to content

Commit 8d5e429

Browse files
committed
Merge branch 'da/cargo-serialize'
Makefile tried to run multiple "cargo build" which would not work very well; serialize their execution to work it around. * da/cargo-serialize: Makefile: build libgit-rs and libgit-sys serially
2 parents 2462961 + 0eeacde commit 8d5e429

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3945,13 +3945,12 @@ unit-tests: $(UNIT_TEST_PROGS) $(CLAR_TEST_PROG) t/helper/test-tool$X
39453945
$(MAKE) -C t/ unit-tests
39463946

39473947
.PHONY: libgit-sys libgit-rs
3948-
libgit-sys libgit-rs:
3949-
$(QUIET)(\
3950-
cd contrib/$@ && \
3951-
cargo build \
3952-
)
3948+
libgit-sys:
3949+
$(QUIET)cargo build --manifest-path contrib/libgit-sys/Cargo.toml
3950+
libgit-rs: libgit-sys
3951+
$(QUIET)cargo build --manifest-path contrib/libgit-rs/Cargo.toml
39533952
ifdef INCLUDE_LIBGIT_RS
3954-
all:: libgit-sys libgit-rs
3953+
all:: libgit-rs
39553954
endif
39563955

39573956
LIBGIT_PUB_OBJS += contrib/libgit-sys/public_symbol_export.o

t/Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,9 @@ perf:
189189

190190
.PHONY: libgit-sys-test libgit-rs-test
191191
libgit-sys-test:
192-
$(QUIET)(\
193-
cd ../contrib/libgit-sys && \
194-
cargo test \
195-
)
196-
libgit-rs-test:
197-
$(QUIET)(\
198-
cd ../contrib/libgit-rs && \
199-
cargo test \
200-
)
192+
$(QUIET)cargo test --manifest-path ../contrib/libgit-sys/Cargo.toml
193+
libgit-rs-test: libgit-sys-test
194+
$(QUIET)cargo test --manifest-path ../contrib/libgit-rs/Cargo.toml
201195
ifdef INCLUDE_LIBGIT_RS
202-
all:: libgit-sys-test libgit-rs-test
196+
all:: libgit-rs-test
203197
endif

0 commit comments

Comments
 (0)