1 # Helper function to set up dependencies if they exist.
2 function(add_macro_header name)
5 "" # Optional arguments
6 "HDR" # Single value arguments
7 "DEPENDS" # Multi-value arguments
10 if(TARGET libc.include.llvm-libc-macros.${LIBC_TARGET_OS}.${name})
16 .${LIBC_TARGET_OS}.${name}
17 ${MACRO_HEADER_DEPENDS}
25 ${MACRO_HEADER_DEPENDS}
28 endfunction(add_macro_header)
30 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
31 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
47 generic_error_number_macros
49 generic-error-number-macros.h
135 math-function-macros.h
232 sys-resource-macros.h