From 9ed46a10fe2d240a6a2104004a012e7e652996d2 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 18 Jul 2025 15:11:25 +0100 Subject: [PATCH] MLECO-6389: Including cmath header in math library Fix for some third party toolchains failing to compile the math library without explicitly including the cmath header. A trivial non-related doumentation fix to say that LLVM or Clang based toolchains may not work for ExecuTorch either. Currently, only Arm GNU Embedded Toolchain works with this flow. Change-Id: I12889d796886fb0532002c01b1b603982c926e31 Signed-off-by: Kshitij Sisodia --- Readme.md | 2 +- source/math/PlatformMath.cc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 1a938fb..7a30ce6 100644 --- a/Readme.md +++ b/Readme.md @@ -218,7 +218,7 @@ a preview of refactoring that allows `ExecuTorch` and `TensorFlow Lite Micro` to source tree. At this stage, only the **image classification example** is functional with the `ExecuTorch` path, with the following limitations: -* Arm® Compiler is not supported +* Arm® Compiler and Arm® Toolchain for Embedded are not supported * Runtime memory usage is higher than we would like * Arm® Ethos™-U65 NPU is not supported; this limitation could be resolved with minor tweaks within Executorch tree. diff --git a/source/math/PlatformMath.cc b/source/math/PlatformMath.cc index 6cc071b..d36cbf0 100644 --- a/source/math/PlatformMath.cc +++ b/source/math/PlatformMath.cc @@ -1,5 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright 2021-2022 Arm Limited and/or its affiliates + * SPDX-FileCopyrightText: Copyright 2021-2022, 2025 Arm Limited and/or its + * affiliates * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +18,7 @@ #include "PlatformMath.hpp" #include "log_macros.h" #include +#include namespace arm { namespace app { -- GitLab