From 07a868a7d001455b97a1d7e4927b7ca7d21f0c42 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 4 Dec 2023 10:39:18 -0800 Subject: [PATCH] [libc] Fix missing math_extras include The file integer_utils.h assumes it has access to the add_with_carry function from math_extras.h, but did not have a direct include for that file. This caused build errors on arm32 where the indirect include chain was broken. This patch adds the missing include. --- libc/src/__support/CMakeLists.txt | 1 + libc/src/__support/integer_utils.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt index ba80965b5aaaf..06e335c9dd8b5 100644 --- a/libc/src/__support/CMakeLists.txt +++ b/libc/src/__support/CMakeLists.txt @@ -190,6 +190,7 @@ add_header_library( DEPENDS .bit .number_pair + .math_extras libc.src.__support.common libc.src.__support.CPP.type_traits ) diff --git a/libc/src/__support/integer_utils.h b/libc/src/__support/integer_utils.h index 433e99227bcfd..661318f03bfd3 100644 --- a/libc/src/__support/integer_utils.h +++ b/libc/src/__support/integer_utils.h @@ -13,6 +13,7 @@ #include "src/__support/common.h" #include "bit.h" +#include "math_extras.h" #include "number_pair.h" #include