MFH: r522821

math/clp: fix build on non-x86 non-ARM

Only amd64 and i386 have immintrin.h. There's a check for ARM, but not for other architectures.

Building without immintrin.h works fine on amd64.

PR:		242966
Approved by:	co9co9@gmail.com (maintainer timeout)
Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-01-12 17:28:02 +00:00
parent 895a712b25
commit 2b5f588313
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=522823
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- Clp/src/ClpPackedMatrix.cpp.orig 2019-12-29 17:14:00 UTC
+++ Clp/src/ClpPackedMatrix.cpp
@@ -6752,7 +6752,7 @@ ClpPackedMatrix3::ClpPackedMatrix3()
#elif defined(__arm__)
#include <arm_neon.h>
#else
-#include <immintrin.h>
+//#include <immintrin.h>
//#include <fmaintrin.h>
#endif
/* Constructor from copy. */

View File

@ -0,0 +1,11 @@
--- Clp/src/ClpSimplexDual.cpp.orig 2019-12-29 17:45:58 UTC
+++ Clp/src/ClpSimplexDual.cpp
@@ -3559,7 +3559,7 @@ void moveAndZero(clpTempInfo *info, int type, void *ex
#elif defined(__arm__)
#include <arm_neon.h>
#else
-#include <immintrin.h>
+//#include <immintrin.h>
//#include <fmaintrin.h>
#endif
int ClpSimplexDual::dualColumn0(const CoinIndexedVector *rowArray,