llvm/libc/src/stdlib/gpu/CMakeLists.txt

add_entrypoint_object(
  malloc
  SRCS
    malloc.cpp
  HDRS
    ../malloc.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.GPU.allocator
)

add_entrypoint_object(
  free
  SRCS
    free.cpp
  HDRS
    ../free.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.RPC.rpc_client
)

add_entrypoint_object(
  realloc
  SRCS
    realloc.cpp
  HDRS
    ../realloc.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.GPU.allocator
)

add_entrypoint_object(
  calloc
  SRCS
    calloc.cpp
  HDRS
    ../calloc.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.GPU.allocator
)

add_entrypoint_object(
  aligned_alloc
  SRCS
    aligned_alloc.cpp
  HDRS
    ../aligned_alloc.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.GPU.allocator
)

add_entrypoint_object(
  abort
  SRCS
    abort.cpp
  HDRS
    ../abort.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.RPC.rpc_client
)

add_entrypoint_object(
  system
  SRCS
    system.cpp
  HDRS
    ../system.h
  DEPENDS
    libc.include.stdlib
    libc.src.__support.RPC.rpc_client
)