1 # If we are in full build mode, we will provide the errno definition ourselves,
2 # and if we are in overlay mode, we will just re-use the system's errno.
3 # We are passing LIBC_FULL_BUILD flag in full build mode so that the
4 # implementation of libc_errno will know if we are in full build mode or not.
6 # TODO: Move LIBC_FULL_BUILD flag to _get_common_compile_options.
7 set(full_build_flag "")
8 if(LLVM_LIBC_FULL_BUILD)
9 set(full_build_flag "-DLIBC_FULL_BUILD")
12 if(LIBC_CONF_ERRNO_MODE)
13 set(errno_config_copts "-DLIBC_ERRNO_MODE=${LIBC_CONF_ERRNO_MODE}")
16 add_entrypoint_object(
21 libc_errno.h # Include this
27 libc.src.__support.common