[libc-commits] [libc] [libc] Add the missing math_extras.h include (PR #74259)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Mon Dec 4 11:01:30 PST 2023
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/74259
>From dae715cabbd20cb623aece7fadc4e41c34e076e7 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Sun, 3 Dec 2023 22:43:51 +0000
Subject: [PATCH] [libc] Add the missing math_extras.h include
math_extras.h is used in integer_utils.h when building for 32-bit
platforms but the include is missing.
---
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..d6dbad661cb73 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -189,6 +189,7 @@ add_header_library(
integer_utils.h
DEPENDS
.bit
+ .math_extras
.number_pair
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 <stdint.h>
More information about the libc-commits
mailing list