Skip to content

Commit 5e4409f

Browse files
airliedarsenm
authored andcommitted
Fix out-of-tree clang build due to sysexits change
The sysexists change broke clang building out of tree against llvm. https://reviews.llvm.org/D88467
1 parent b45b516 commit 5e4409f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/include/llvm/Config/config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@
208208
/* Define to 1 if you have the <sys/types.h> header file. */
209209
#cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}
210210

211-
/* Define to 1 if you have the <sysexits.h> header file. */
212-
#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H}
213-
214211
/* Define if the setupterm() function is supported this platform. */
215212
#cmakedefine LLVM_ENABLE_TERMINFO ${LLVM_ENABLE_TERMINFO}
216213

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,7 @@
8888
/* Define if LLVM was built with a dependency to the tensorflow compiler */
8989
#cmakedefine LLVM_HAVE_TF_AOT
9090

91+
/* Define to 1 if you have the <sysexits.h> header file. */
92+
#cmakedefine HAVE_SYSEXITS_H ${HAVE_SYSEXITS_H}
93+
9194
#endif

llvm/include/llvm/Support/ExitCodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef LLVM_SUPPORT_EXITCODES_H
1717
#define LLVM_SUPPORT_EXITCODES_H
1818

19-
#include "llvm/Config/config.h"
19+
#include "llvm/Config/llvm-config.h"
2020

2121
#if HAVE_SYSEXITS_H
2222
#include <sysexits.h>

0 commit comments

Comments
 (0)