Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 1 | #ifndef CONFIG_H |
| 2 | #define CONFIG_H |
| 3 | |
| 4 | // Include this header only under the llvm source tree. |
| 5 | // This is a private header. |
| 6 | |
| 7 | /* Exported configuration */ |
| 8 | #include "llvm/Config/llvm-config.h" |
| 9 | |
| 10 | /* Bug report URL. */ |
| 11 | #define BUG_REPORT_URL "${BUG_REPORT_URL}" |
| 12 | |
| 13 | /* Define to 1 to enable backtraces, and to 0 otherwise. */ |
| 14 | #cmakedefine01 ENABLE_BACKTRACES |
| 15 | |
| 16 | /* Define to 1 to enable crash overrides, and to 0 otherwise. */ |
| 17 | #cmakedefine01 ENABLE_CRASH_OVERRIDES |
| 18 | |
| 19 | /* Define to 1 to enable crash memory dumps, and to 0 otherwise. */ |
| 20 | #cmakedefine01 LLVM_ENABLE_CRASH_DUMPS |
| 21 | |
Tres Popp | 7d323dc | 2021-11-05 09:04:14 | [diff] [blame] | 22 | /* Define to 1 to prefer forward slashes on Windows, and to 0 prefer |
| 23 | backslashes. */ |
| 24 | #cmakedefine01 LLVM_WINDOWS_PREFER_FORWARD_SLASH |
| 25 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 26 | /* Define to 1 if you have the `backtrace' function. */ |
| 27 | #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE} |
| 28 | |
| 29 | #define BACKTRACE_HEADER <${BACKTRACE_HEADER}> |
| 30 | |
| 31 | /* Define to 1 if you have the <CrashReporterClient.h> header file. */ |
| 32 | #cmakedefine HAVE_CRASHREPORTERCLIENT_H |
| 33 | |
| 34 | /* can use __crashreporter_info__ */ |
| 35 | #cmakedefine01 HAVE_CRASHREPORTER_INFO |
| 36 | |
| 37 | /* Define to 1 if you have the declaration of `arc4random', and to 0 if you |
| 38 | don't. */ |
| 39 | #cmakedefine01 HAVE_DECL_ARC4RANDOM |
| 40 | |
| 41 | /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you |
| 42 | don't. */ |
| 43 | #cmakedefine01 HAVE_DECL_FE_ALL_EXCEPT |
| 44 | |
| 45 | /* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you |
| 46 | don't. */ |
| 47 | #cmakedefine01 HAVE_DECL_FE_INEXACT |
| 48 | |
| 49 | /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you |
| 50 | don't. */ |
| 51 | #cmakedefine01 HAVE_DECL_STRERROR_S |
| 52 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 53 | /* Define if dlopen() is available on this platform. */ |
| 54 | #cmakedefine HAVE_DLOPEN ${HAVE_DLOPEN} |
| 55 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 56 | /* Define to 1 if we can register EH frames on this platform. */ |
| 57 | #cmakedefine HAVE_REGISTER_FRAME ${HAVE_REGISTER_FRAME} |
| 58 | |
| 59 | /* Define to 1 if we can deregister EH frames on this platform. */ |
| 60 | #cmakedefine HAVE_DEREGISTER_FRAME ${HAVE_DEREGISTER_FRAME} |
| 61 | |
Geoffrey Martin-Noble | b51e71f | 2021-08-16 19:12:38 | [diff] [blame] | 62 | /* Define if __unw_add_dynamic_fde() is available on this platform. */ |
| 63 | #cmakedefine HAVE_UNW_ADD_DYNAMIC_FDE ${HAVE_UNW_ADD_DYNAMIC_FDE} |
| 64 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 65 | /* Define if libffi is available on this platform. */ |
| 66 | #cmakedefine HAVE_FFI_CALL ${HAVE_FFI_CALL} |
| 67 | |
| 68 | /* Define to 1 if you have the <ffi/ffi.h> header file. */ |
| 69 | #cmakedefine HAVE_FFI_FFI_H ${HAVE_FFI_FFI_H} |
| 70 | |
| 71 | /* Define to 1 if you have the <ffi.h> header file. */ |
| 72 | #cmakedefine HAVE_FFI_H ${HAVE_FFI_H} |
| 73 | |
| 74 | /* Define to 1 if you have the `futimens' function. */ |
| 75 | #cmakedefine HAVE_FUTIMENS ${HAVE_FUTIMENS} |
| 76 | |
| 77 | /* Define to 1 if you have the `futimes' function. */ |
| 78 | #cmakedefine HAVE_FUTIMES ${HAVE_FUTIMES} |
| 79 | |
| 80 | /* Define to 1 if you have the `getpagesize' function. */ |
| 81 | #cmakedefine HAVE_GETPAGESIZE ${HAVE_GETPAGESIZE} |
| 82 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 83 | /* Define to 1 if you have the `getrusage' function. */ |
| 84 | #cmakedefine HAVE_GETRUSAGE ${HAVE_GETRUSAGE} |
| 85 | |
| 86 | /* Define to 1 if you have the `isatty' function. */ |
| 87 | #cmakedefine HAVE_ISATTY 1 |
| 88 | |
| 89 | /* Define to 1 if you have the `edit' library (-ledit). */ |
| 90 | #cmakedefine HAVE_LIBEDIT ${HAVE_LIBEDIT} |
| 91 | |
| 92 | /* Define to 1 if you have the `pfm' library (-lpfm). */ |
| 93 | #cmakedefine HAVE_LIBPFM ${HAVE_LIBPFM} |
| 94 | |
| 95 | /* Define to 1 if the `perf_branch_entry' struct has field cycles. */ |
| 96 | #cmakedefine LIBPFM_HAS_FIELD_CYCLES ${LIBPFM_HAS_FIELD_CYCLES} |
| 97 | |
| 98 | /* Define to 1 if you have the `psapi' library (-lpsapi). */ |
| 99 | #cmakedefine HAVE_LIBPSAPI ${HAVE_LIBPSAPI} |
| 100 | |
| 101 | /* Define to 1 if you have the `pthread' library (-lpthread). */ |
| 102 | #cmakedefine HAVE_LIBPTHREAD ${HAVE_LIBPTHREAD} |
| 103 | |
| 104 | /* Define to 1 if you have the `pthread_getname_np' function. */ |
| 105 | #cmakedefine HAVE_PTHREAD_GETNAME_NP ${HAVE_PTHREAD_GETNAME_NP} |
| 106 | |
| 107 | /* Define to 1 if you have the `pthread_setname_np' function. */ |
| 108 | #cmakedefine HAVE_PTHREAD_SETNAME_NP ${HAVE_PTHREAD_SETNAME_NP} |
| 109 | |
Christian Sigg | e90b219 | 2024-09-02 11:33:49 | [diff] [blame] | 110 | /* Define to 1 if you have the `pthread_get_name_np' function. */ |
| 111 | #cmakedefine HAVE_PTHREAD_GET_NAME_NP ${HAVE_PTHREAD_GET_NAME_NP} |
| 112 | |
| 113 | /* Define to 1 if you have the `pthread_set_name_np' function. */ |
| 114 | #cmakedefine HAVE_PTHREAD_SET_NAME_NP ${HAVE_PTHREAD_SET_NAME_NP} |
| 115 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 116 | /* Define to 1 if you have the <mach/mach.h> header file. */ |
| 117 | #cmakedefine HAVE_MACH_MACH_H ${HAVE_MACH_MACH_H} |
| 118 | |
| 119 | /* Define to 1 if you have the `mallctl' function. */ |
| 120 | #cmakedefine HAVE_MALLCTL ${HAVE_MALLCTL} |
| 121 | |
| 122 | /* Define to 1 if you have the `mallinfo' function. */ |
| 123 | #cmakedefine HAVE_MALLINFO ${HAVE_MALLINFO} |
| 124 | |
| 125 | /* Define to 1 if you have the `mallinfo2' function. */ |
| 126 | #cmakedefine HAVE_MALLINFO2 ${HAVE_MALLINFO2} |
| 127 | |
| 128 | /* Define to 1 if you have the <malloc/malloc.h> header file. */ |
| 129 | #cmakedefine HAVE_MALLOC_MALLOC_H ${HAVE_MALLOC_MALLOC_H} |
| 130 | |
| 131 | /* Define to 1 if you have the `malloc_zone_statistics' function. */ |
| 132 | #cmakedefine HAVE_MALLOC_ZONE_STATISTICS ${HAVE_MALLOC_ZONE_STATISTICS} |
| 133 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 134 | /* Define to 1 if you have the `posix_spawn' function. */ |
| 135 | #cmakedefine HAVE_POSIX_SPAWN ${HAVE_POSIX_SPAWN} |
| 136 | |
| 137 | /* Define to 1 if you have the `pread' function. */ |
| 138 | #cmakedefine HAVE_PREAD ${HAVE_PREAD} |
| 139 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 140 | /* Define to 1 if you have the <pthread.h> header file. */ |
| 141 | #cmakedefine HAVE_PTHREAD_H ${HAVE_PTHREAD_H} |
| 142 | |
| 143 | /* Have pthread_mutex_lock */ |
| 144 | #cmakedefine HAVE_PTHREAD_MUTEX_LOCK ${HAVE_PTHREAD_MUTEX_LOCK} |
| 145 | |
| 146 | /* Have pthread_rwlock_init */ |
| 147 | #cmakedefine HAVE_PTHREAD_RWLOCK_INIT ${HAVE_PTHREAD_RWLOCK_INIT} |
| 148 | |
| 149 | /* Define to 1 if you have the `sbrk' function. */ |
| 150 | #cmakedefine HAVE_SBRK ${HAVE_SBRK} |
| 151 | |
| 152 | /* Define to 1 if you have the `setenv' function. */ |
| 153 | #cmakedefine HAVE_SETENV ${HAVE_SETENV} |
| 154 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 155 | /* Define to 1 if you have the `sigaltstack' function. */ |
| 156 | #cmakedefine HAVE_SIGALTSTACK ${HAVE_SIGALTSTACK} |
| 157 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 158 | /* Define to 1 if you have the `strerror_r' function. */ |
| 159 | #cmakedefine HAVE_STRERROR_R ${HAVE_STRERROR_R} |
| 160 | |
| 161 | /* Define to 1 if you have the `sysconf' function. */ |
| 162 | #cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF} |
| 163 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 164 | /* Define to 1 if you have the <sys/mman.h> header file. */ |
| 165 | #cmakedefine HAVE_SYS_MMAN_H ${HAVE_SYS_MMAN_H} |
| 166 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 167 | /* Define to 1 if stat struct has st_mtimespec member .*/ |
| 168 | #cmakedefine HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC ${HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC} |
| 169 | |
| 170 | /* Define to 1 if stat struct has st_mtim member. */ |
| 171 | #cmakedefine HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC ${HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC} |
| 172 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 173 | /* Define to 1 if you have the <unistd.h> header file. */ |
| 174 | #cmakedefine HAVE_UNISTD_H ${HAVE_UNISTD_H} |
| 175 | |
| 176 | /* Define to 1 if you have the <valgrind/valgrind.h> header file. */ |
| 177 | #cmakedefine HAVE_VALGRIND_VALGRIND_H ${HAVE_VALGRIND_VALGRIND_H} |
| 178 | |
| 179 | /* Have host's _alloca */ |
| 180 | #cmakedefine HAVE__ALLOCA ${HAVE__ALLOCA} |
| 181 | |
| 182 | /* Define to 1 if you have the `_chsize_s' function. */ |
| 183 | #cmakedefine HAVE__CHSIZE_S ${HAVE__CHSIZE_S} |
| 184 | |
| 185 | /* Define to 1 if you have the `_Unwind_Backtrace' function. */ |
| 186 | #cmakedefine HAVE__UNWIND_BACKTRACE ${HAVE__UNWIND_BACKTRACE} |
| 187 | |
| 188 | /* Have host's __alloca */ |
| 189 | #cmakedefine HAVE___ALLOCA ${HAVE___ALLOCA} |
| 190 | |
| 191 | /* Have host's __ashldi3 */ |
| 192 | #cmakedefine HAVE___ASHLDI3 ${HAVE___ASHLDI3} |
| 193 | |
| 194 | /* Have host's __ashrdi3 */ |
| 195 | #cmakedefine HAVE___ASHRDI3 ${HAVE___ASHRDI3} |
| 196 | |
| 197 | /* Have host's __chkstk */ |
| 198 | #cmakedefine HAVE___CHKSTK ${HAVE___CHKSTK} |
| 199 | |
| 200 | /* Have host's __chkstk_ms */ |
| 201 | #cmakedefine HAVE___CHKSTK_MS ${HAVE___CHKSTK_MS} |
| 202 | |
| 203 | /* Have host's __cmpdi2 */ |
| 204 | #cmakedefine HAVE___CMPDI2 ${HAVE___CMPDI2} |
| 205 | |
| 206 | /* Have host's __divdi3 */ |
| 207 | #cmakedefine HAVE___DIVDI3 ${HAVE___DIVDI3} |
| 208 | |
| 209 | /* Have host's __fixdfdi */ |
| 210 | #cmakedefine HAVE___FIXDFDI ${HAVE___FIXDFDI} |
| 211 | |
| 212 | /* Have host's __fixsfdi */ |
| 213 | #cmakedefine HAVE___FIXSFDI ${HAVE___FIXSFDI} |
| 214 | |
| 215 | /* Have host's __floatdidf */ |
| 216 | #cmakedefine HAVE___FLOATDIDF ${HAVE___FLOATDIDF} |
| 217 | |
| 218 | /* Have host's __lshrdi3 */ |
| 219 | #cmakedefine HAVE___LSHRDI3 ${HAVE___LSHRDI3} |
| 220 | |
| 221 | /* Have host's __main */ |
| 222 | #cmakedefine HAVE___MAIN ${HAVE___MAIN} |
| 223 | |
| 224 | /* Have host's __moddi3 */ |
| 225 | #cmakedefine HAVE___MODDI3 ${HAVE___MODDI3} |
| 226 | |
| 227 | /* Have host's __udivdi3 */ |
| 228 | #cmakedefine HAVE___UDIVDI3 ${HAVE___UDIVDI3} |
| 229 | |
| 230 | /* Have host's __umoddi3 */ |
| 231 | #cmakedefine HAVE___UMODDI3 ${HAVE___UMODDI3} |
| 232 | |
| 233 | /* Have host's ___chkstk */ |
| 234 | #cmakedefine HAVE____CHKSTK ${HAVE____CHKSTK} |
| 235 | |
| 236 | /* Have host's ___chkstk_ms */ |
| 237 | #cmakedefine HAVE____CHKSTK_MS ${HAVE____CHKSTK_MS} |
| 238 | |
| 239 | /* Linker version detected at compile time. */ |
| 240 | #cmakedefine HOST_LINK_VERSION "${HOST_LINK_VERSION}" |
| 241 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 242 | /* Define if overriding target triple is enabled */ |
| 243 | #cmakedefine LLVM_TARGET_TRIPLE_ENV "${LLVM_TARGET_TRIPLE_ENV}" |
| 244 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 245 | /* Whether tools show host and target info when invoked with --version */ |
| 246 | #cmakedefine01 LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO |
| 247 | |
NAKAMURA Takumi | ba5dad3 | 2024-04-07 01:56:41 | [diff] [blame] | 248 | /* Whether tools show optional build config flags when invoked with --version */ |
| 249 | #cmakedefine01 LLVM_VERSION_PRINTER_SHOW_BUILD_CONFIG |
| 250 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 251 | /* Define if libxml2 is supported on this platform. */ |
| 252 | #cmakedefine LLVM_ENABLE_LIBXML2 ${LLVM_ENABLE_LIBXML2} |
| 253 | |
| 254 | /* Define to the extension used for shared libraries, say, ".so". */ |
| 255 | #cmakedefine LTDL_SHLIB_EXT "${LTDL_SHLIB_EXT}" |
| 256 | |
| 257 | /* Define to the extension used for plugin libraries, say, ".so". */ |
| 258 | #cmakedefine LLVM_PLUGIN_EXT "${LLVM_PLUGIN_EXT}" |
| 259 | |
| 260 | /* Define to the address where bug reports for this package should be sent. */ |
| 261 | #cmakedefine PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}" |
| 262 | |
| 263 | /* Define to the full name of this package. */ |
| 264 | #cmakedefine PACKAGE_NAME "${PACKAGE_NAME}" |
| 265 | |
| 266 | /* Define to the full name and version of this package. */ |
| 267 | #cmakedefine PACKAGE_STRING "${PACKAGE_STRING}" |
| 268 | |
| 269 | /* Define to the version of this package. */ |
| 270 | #cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}" |
| 271 | |
| 272 | /* Define to the vendor of this package. */ |
| 273 | #cmakedefine PACKAGE_VENDOR "${PACKAGE_VENDOR}" |
| 274 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 275 | /* Define to a function implementing stricmp */ |
| 276 | #cmakedefine stricmp ${stricmp} |
| 277 | |
| 278 | /* Define to a function implementing strdup */ |
| 279 | #cmakedefine strdup ${strdup} |
| 280 | |
| 281 | /* Whether GlobalISel rule coverage is being collected */ |
| 282 | #cmakedefine01 LLVM_GISEL_COV_ENABLED |
| 283 | |
| 284 | /* Define to the default GlobalISel coverage file prefix */ |
| 285 | #cmakedefine LLVM_GISEL_COV_PREFIX "${LLVM_GISEL_COV_PREFIX}" |
| 286 | |
Geoffrey Martin-Noble | 011d863 | 2021-10-11 18:22:27 | [diff] [blame] | 287 | /* Whether Timers signpost passes in Xcode Instruments */ |
| 288 | #cmakedefine01 LLVM_SUPPORT_XCODE_SIGNPOSTS |
| 289 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 290 | #cmakedefine HAVE_PROC_PID_RUSAGE 1 |
| 291 | |
Mikhail Goncharov | 6de5922 | 2023-07-21 15:38:01 | [diff] [blame] | 292 | #cmakedefine HAVE_BUILTIN_THREAD_POINTER ${HAVE_BUILTIN_THREAD_POINTER} |
| 293 | |
Christian Sigg | ec056f5 | 2025-02-13 07:08:52 | [diff] [blame] | 294 | #cmakedefine HAVE_GETAUXVAL ${HAVE_GETAUXVAL} |
NAKAMURA Takumi | 9bd836a | 2025-02-13 03:55:15 | [diff] [blame] | 295 | |
Geoffrey Martin-Noble | 4aeb2e6 | 2021-05-18 22:42:25 | [diff] [blame] | 296 | #endif |