From 72c460fc0aed96c94502386d66d19682d02c679d Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Wed, 7 Feb 2024 09:46:15 +0100 Subject: [PATCH] [14_0_X] Fix GBL compilation for non-x64 architectures --- gbl.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gbl.spec b/gbl.spec index 590e84dc133..b1499f03593 100644 --- a/gbl.spec +++ b/gbl.spec @@ -20,7 +20,11 @@ cmake ../cpp \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DEIGEN3_INCLUDE_DIR=${EIGEN_ROOT}/include/eigen3 \ -DSUPPORT_ROOT=False \ + %ifarch x86_64 -DCMAKE_CXX_FLAGS="-DEIGEN_MAX_ALIGN_BYTES=64 -msse3" \ + %else + -DCMAKE_CXX_FLAGS="-DEIGEN_MAX_ALIGN_BYTES=64" \ + %endif -DCMAKE_CXX_STANDARD=%{cms_cxx_standard} make %{makeprocesses}