[libc-commits] [libc] 23df67b - [libc][Obvious] Add include.stdlib as missing dep for CPP.string.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Mon Apr 24 15:07:25 PDT 2023


Author: Siva Chandra Reddy
Date: 2023-04-24T22:06:59Z
New Revision: 23df67bdeee241dc5c32d7e7627cae99dd54fc55

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

LOG: [libc][Obvious] Add include.stdlib as missing dep for CPP.string.

string.h includes stdlib.h to get free and realloc. This change
adds the missing dep on stdlib.h.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D149075

Added: 
    

Modified: 
    libc/src/__support/CPP/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/CPP/CMakeLists.txt b/libc/src/__support/CPP/CMakeLists.txt
index 63f1fc6673fd..147e84c0e39a 100644
--- a/libc/src/__support/CPP/CMakeLists.txt
+++ b/libc/src/__support/CPP/CMakeLists.txt
@@ -60,6 +60,7 @@ add_header_library(
   HDRS
     string.h
   DEPENDS
+    libc.include.stdlib
     .string_view
     libc.src.__support.common
     libc.src.__support.integer_to_string


        


More information about the libc-commits mailing list