Skip to content

E3-921: Add test to ensure that failed architectures cause build to fail

Simon Rose requested to merge e3_921_idiomatic_arch_targets into master

This MR switches to a more idiomatic way of managing dependencies on multiple architectures. Instead of performing a bash-loop over architectures:

build::
	@+failed_builds=0; \
	for ARCH in ${BUILD_ARCHS}; do \
	    umask 002; echo MAKING ARCH $$ARCH; ${MAKE} -f ${USERMAKEFILE} T_A=$$ARCH $@ || ((failed_builds++)); \
	done; \
	((failed_builds == 0))

we replace it by (effectively) the far more idiomatic

build: build-arch1 build-arch2 

build-%:
	${MAKE} build T_A=$*

Merge request reports

Loading