From 86383897f4339a26394c98c7fb72a12750ceb891 Mon Sep 17 00:00:00 2001 From: Alan Williams Date: Tue, 27 Oct 2020 12:31:35 -0600 Subject: [PATCH] Fix fei issue for clang compiler, fix provided by Mike Glass. --- base/fei_EqnCommMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/fei_EqnCommMgr.cpp b/base/fei_EqnCommMgr.cpp index 9299e9bf438..7b0d8e21e89 100644 --- a/base/fei_EqnCommMgr.cpp +++ b/base/fei_EqnCommMgr.cpp @@ -741,9 +741,9 @@ void EqnCommMgr::exchangeSoln() } //------------------------------------------------------------------------------ -// This works around an issue with the ARMHPC 20.1 compiler +// This works around an issue with the clang and ARMHPC compiler // Needs to be revisited with later versions -#ifdef __ARM_HPC_COMPILER_VERSION__ +#if defined (__clang__) && ! defined(__INTEL_CLANG_COMPILER) __attribute__((optnone)) #endif int EqnCommMgr::mirrorProcEqns(ProcEqns& inProcEqns, ProcEqns& outProcEqns)