aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/Utils.cpp')
-rw-r--r--src/armnn/Utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/armnn/Utils.cpp b/src/armnn/Utils.cpp
index 33d654f484..38732b3530 100644
--- a/src/armnn/Utils.cpp
+++ b/src/armnn/Utils.cpp
@@ -1,17 +1,19 @@
//
-// Copyright © 2017 Arm Ltd. All rights reserved.
+// Copyright © 2017, 2024 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "armnn/Logging.hpp"
#include "armnn/Utils.hpp"
#include "armnn/Version.hpp"
+#if !defined(__APPLE__)
#if !defined(ARMNN_BUILD_BARE_METAL) && (defined(__arm__) || defined(__aarch64__))
#include <sys/auxv.h>
#include <asm/hwcap.h>
#endif
+#endif
namespace armnn
{
@@ -36,6 +38,7 @@ static DefaultLoggingConfiguration g_DefaultLoggingConfiguration;
// Detect the presence of Neon on Linux
bool NeonDetected()
{
+#if !defined(__APPLE__)
#if !defined(ARMNN_BUILD_BARE_METAL) && (defined(__arm__) || defined(__aarch64__))
auto hwcaps= getauxval(AT_HWCAP);
#endif
@@ -68,6 +71,7 @@ bool NeonDetected()
}
#endif
+#endif
// This method of Neon detection is only supported on Linux so in order to prevent a false negative
// we will return true in cases where detection did not run.