[libc-commits] [libc] f5b8f12 - [libc][obvious] Add inttypes.h and stdlib.h as deps to *div functions.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Sun Sep 19 22:55:38 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-09-20T05:54:32Z
New Revision: f5b8f1247cd9d1b18b7b95f6f197d4d654597529

URL: https://github.com/llvm/llvm-project/commit/f5b8f1247cd9d1b18b7b95f6f197d4d654597529
DIFF: https://github.com/llvm/llvm-project/commit/f5b8f1247cd9d1b18b7b95f6f197d4d654597529.diff

LOG: [libc][obvious] Add inttypes.h and stdlib.h as deps to *div functions.

Added: 
    

Modified: 
    libc/src/inttypes/CMakeLists.txt
    libc/src/stdlib/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/inttypes/CMakeLists.txt b/libc/src/inttypes/CMakeLists.txt
index 81068bd73c50..e0e0f4d57f2b 100644
--- a/libc/src/inttypes/CMakeLists.txt
+++ b/libc/src/inttypes/CMakeLists.txt
@@ -25,5 +25,6 @@ add_entrypoint_object(
   HDRS
     imaxdiv.h
   DEPENDS
+    libc.include.inttypes
     libc.src.__support.integer_operations
 )

diff  --git a/libc/src/stdlib/CMakeLists.txt b/libc/src/stdlib/CMakeLists.txt
index d787bdf1b81b..c058a936795c 100644
--- a/libc/src/stdlib/CMakeLists.txt
+++ b/libc/src/stdlib/CMakeLists.txt
@@ -105,6 +105,7 @@ add_entrypoint_object(
   HDRS
     div.h
   DEPENDS
+    libc.include.stdlib
     libc.src.__support.integer_operations
 )
 
@@ -115,6 +116,7 @@ add_entrypoint_object(
   HDRS
     ldiv.h
   DEPENDS
+    libc.include.stdlib
     libc.src.__support.integer_operations
 )
 
@@ -125,6 +127,7 @@ add_entrypoint_object(
   HDRS
     lldiv.h
   DEPENDS
+    libc.include.stdlib
     libc.src.__support.integer_operations
 )
 


        


More information about the libc-commits mailing list