mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
Config: Disable parallel builds for Cargo on riscv64
There seems to be some problem where Cargo deadlocks during the build when running on mutliple cores simulteneously. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
1432531ac8
commit
9b1f666eae
@@ -209,9 +209,15 @@ CARGO = \
|
||||
--offline
|
||||
|
||||
CARGO_OPTIONS = \
|
||||
$(MAKETUNING) \
|
||||
-Z avoid-dev-deps
|
||||
|
||||
# Cargo dealocks on riscv64 when building on multiple cores at the same time
|
||||
ifeq "$(BUILD_ARCH)" "riscv64"
|
||||
CARGO_OPTIONS += -j1
|
||||
else
|
||||
CARGO_OPTIONS += $(MAKETUNING)
|
||||
endif
|
||||
|
||||
define CARGO_PREPARE
|
||||
mkdir -p $(CARGO_PATH) && \
|
||||
echo "$${CARGO_CONFIG}" > $(CARGO_PATH)/config && \
|
||||
|
||||
Reference in New Issue
Block a user