From 47354965bcc0b1bc48c84bd7c407b18c6f1f9fdf Mon Sep 17 00:00:00 2001 From: Phil Sorber Date: Tue, 22 Jul 2014 18:31:25 -0300 Subject: [PATCH] Add support for ppc64le arch --- configure | 2 +- regressions/ck_cohort/validate/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6c1a420..6bb8a5d 100755 --- a/configure +++ b/configure @@ -415,7 +415,7 @@ case $PLATFORM in ;; esac ;; - "ppc64") + "ppc64"|"ppc64le") RTM_ENABLE="CK_MD_RTM_DISABLE" MM="${MM:-"CK_MD_RMO"}" PLATFORM=ppc64 diff --git a/regressions/ck_cohort/validate/Makefile b/regressions/ck_cohort/validate/Makefile index 145af3a..8338f46 100644 --- a/regressions/ck_cohort/validate/Makefile +++ b/regressions/ck_cohort/validate/Makefile @@ -8,7 +8,11 @@ validate: validate.c ../../../include/ck_cohort.h $(CC) $(CFLAGS) -o validate validate.c check: all +ifeq ($(expr ($(CORES) / 2) > 0),$(expr 0)) + ./validate 1 2 1 +else ./validate `expr $(CORES) / 2` 2 1 +endif clean: rm -rf *.dSYM *.exe *~ *.o $(OBJECTS)