Make the `check_all_arches` target no-op on 32-bit architectures. (#1671)

master
Xavier Clerc 2018-03-20 15:33:58 +00:00 committed by Mark Shinwell
parent 23a6845929
commit 52919a7340
2 changed files with 8 additions and 0 deletions

View File

@ -254,6 +254,10 @@ Working version
leftover .a files from an earlier compilation may contain unwanted modules
(Xavier Leroy)
- GPR#1571: do not perform architecture tests on 32-bit platforms, allowing
64-bit back-ends to use 64-bit specific constructs
(Xavier Clerc, review by Damien Doligez)
### Internal/compiler-libs changes:
- GPR#1488, GPR#1560: Refreshing parmatch

View File

@ -1169,11 +1169,15 @@ check_arch:
.PHONY: check_all_arches
check_all_arches:
ifneq ($(shell grep -E '^\#define ARCH_SIXTYFOUR$$' byterun/caml/m.h 2> /dev/null),)
@STATUS=0; \
for i in $(ARCHES); do \
$(MAKE) --no-print-directory check_arch ARCH=$$i || STATUS=1; \
done; \
exit $$STATUS
else
@echo "Architecture tests are disabled on 32-bit platforms."
endif
# Compiler Plugins