diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -208,9 +208,6 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H} -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H} - /* Define if the setupterm() function is supported this platform. */ #cmakedefine LLVM_ENABLE_TERMINFO ${LLVM_ENABLE_TERMINFO} diff --git a/llvm/include/llvm/Config/llvm-config.h.cmake b/llvm/include/llvm/Config/llvm-config.h.cmake --- a/llvm/include/llvm/Config/llvm-config.h.cmake +++ b/llvm/include/llvm/Config/llvm-config.h.cmake @@ -88,4 +88,7 @@ /* Define if LLVM was built with a dependency to the tensorflow compiler */ #cmakedefine LLVM_HAVE_TF_AOT +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H} + #endif diff --git a/llvm/include/llvm/Support/ExitCodes.h b/llvm/include/llvm/Support/ExitCodes.h --- a/llvm/include/llvm/Support/ExitCodes.h +++ b/llvm/include/llvm/Support/ExitCodes.h @@ -16,7 +16,7 @@ #ifndef LLVM_SUPPORT_EXITCODES_H #define LLVM_SUPPORT_EXITCODES_H -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #if HAVE_SYSEXITS_H #include