[libc-commits] [libc] 0b2b87b - [libc] Fix path to fcntl_overlay in cmake (#114464)

via libc-commits libc-commits at lists.llvm.org
Thu Oct 31 14:03:08 PDT 2024


Author: Michael Jones
Date: 2024-10-31T14:03:02-07:00
New Revision: 0b2b87bf3435b4a72f4d1253cd640364e62c7b20

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

LOG: [libc] Fix path to fcntl_overlay in cmake (#114464)

The proxy header definition for mode_t was using an incorrect form for
its dependency on fcntl_overlay. The relative paths for dependencies can
only go down, not up so "../" doesn't work. This patch fixes it to be
absolute.

Added: 
    

Modified: 
    libc/hdr/types/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index e45979857d7955..5ad71e7a6ff46c 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -51,7 +51,7 @@ add_proxy_header_library(
   HDRS
     mode_t.h
   DEPENDS
-    ../fcntl_overlay
+    libc.hdr.fcntl_overlay
   FULL_BUILD_DEPENDS
     libc.include.llvm-libc-types.mode_t
     libc.include.fcntl


        


More information about the libc-commits mailing list