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
This commit is contained in:
11
Makefile
11
Makefile
@@ -3945,13 +3945,12 @@ unit-tests: $(UNIT_TEST_PROGS) $(CLAR_TEST_PROG) t/helper/test-tool$X
|
|||||||
$(MAKE) -C t/ unit-tests
|
$(MAKE) -C t/ unit-tests
|
||||||
|
|
||||||
.PHONY: libgit-sys libgit-rs
|
.PHONY: libgit-sys libgit-rs
|
||||||
libgit-sys libgit-rs:
|
libgit-sys:
|
||||||
$(QUIET)(\
|
$(QUIET)cargo build --manifest-path contrib/libgit-sys/Cargo.toml
|
||||||
cd contrib/$@ && \
|
libgit-rs: libgit-sys
|
||||||
cargo build \
|
$(QUIET)cargo build --manifest-path contrib/libgit-rs/Cargo.toml
|
||||||
)
|
|
||||||
ifdef INCLUDE_LIBGIT_RS
|
ifdef INCLUDE_LIBGIT_RS
|
||||||
all:: libgit-sys libgit-rs
|
all:: libgit-rs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBGIT_PUB_OBJS += contrib/libgit-sys/public_symbol_export.o
|
LIBGIT_PUB_OBJS += contrib/libgit-sys/public_symbol_export.o
|
||||||
|
|||||||
14
t/Makefile
14
t/Makefile
@@ -189,15 +189,9 @@ perf:
|
|||||||
|
|
||||||
.PHONY: libgit-sys-test libgit-rs-test
|
.PHONY: libgit-sys-test libgit-rs-test
|
||||||
libgit-sys-test:
|
libgit-sys-test:
|
||||||
$(QUIET)(\
|
$(QUIET)cargo test --manifest-path ../contrib/libgit-sys/Cargo.toml
|
||||||
cd ../contrib/libgit-sys && \
|
libgit-rs-test: libgit-sys-test
|
||||||
cargo test \
|
$(QUIET)cargo test --manifest-path ../contrib/libgit-rs/Cargo.toml
|
||||||
)
|
|
||||||
libgit-rs-test:
|
|
||||||
$(QUIET)(\
|
|
||||||
cd ../contrib/libgit-rs && \
|
|
||||||
cargo test \
|
|
||||||
)
|
|
||||||
ifdef INCLUDE_LIBGIT_RS
|
ifdef INCLUDE_LIBGIT_RS
|
||||||
all:: libgit-sys-test libgit-rs-test
|
all:: libgit-rs-test
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user