From e7530bdffcbdcf2a3323e0fbd5cc48c32b6ab024 Mon Sep 17 00:00:00 2001 From: "Qiang Kou (KK)" Date: Thu, 6 Jul 2017 17:06:55 -0700 Subject: [PATCH] Not use -msse2 on power or arm arch. close #2446 (#2475) --- make/config.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/make/config.mk b/make/config.mk index 3321052bf28b..a2a48f1e9ddc 100644 --- a/make/config.mk +++ b/make/config.mk @@ -39,6 +39,16 @@ USE_S3 = 0 # whether use Azure blob support during compile USE_AZURE = 0 +#---------------------------- +# Settings for power and arm arch +#---------------------------- +ARCH := $(shell uname -a) +ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64)) + USE_SSE=0 +else + USE_SSE=1 +endif + # Rabit library version, # - librabit.a Normal distributed version. # - librabit_empty.a Non distributed mock version,