[libc-commits] [libc] [libc] adjust linux's `mman.h` definitions (PR #79652)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Fri Jan 26 16:05:45 PST 2024


================
@@ -16,12 +16,6 @@ add_header(
     sys-ioctl-macros.h
 )
 
-add_header(
----------------
SchrodingerZhu wrote:

I suppose it is automatically detected inside `add_macro_header`:
```cmake
if(TARGET libc.include.llvm-libc-macros.${LIBC_TARGET_OS}.${name})
    add_header(
      ${name}
      HDR
        ${MACRO_HEADER_HDR}
      DEPENDS
        .${LIBC_TARGET_OS}.${name}
        ${MACRO_HEADER_DEPENDS}
    )
  else()
    add_header(
      ${name}
      HDR
        ${MACRO_HEADER_HDR}
      DEPENDS
        ${MACRO_HEADER_DEPENDS}
    )
  endif()
```

https://github.com/llvm/llvm-project/pull/79652


More information about the libc-commits mailing list