xref: /freebsd/lib/clang/include/llvm/Config/config.h (revision 894cb08f)
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 "https://bugs.freebsd.org/submit/"
12 
13 /* Define to 1 to enable backtraces, and to 0 otherwise. */
14 #define ENABLE_BACKTRACES 1
15 
16 /* Define to 1 to enable crash overrides, and to 0 otherwise. */
17 #define ENABLE_CRASH_OVERRIDES 1
18 
19 /* Define to 1 to enable crash memory dumps, and to 0 otherwise. */
20 #define LLVM_ENABLE_CRASH_DUMPS 0
21 
22 /* Define to 1 to prefer forward slashes on Windows, and to 0 prefer
23    backslashes. */
24 #define LLVM_WINDOWS_PREFER_FORWARD_SLASH 0
25 
26 /* Define to 1 if you have the `backtrace' function. */
27 #define HAVE_BACKTRACE TRUE
28 
29 #define BACKTRACE_HEADER <execinfo.h>
30 
31 /* Define to 1 if you have the <CrashReporterClient.h> header file. */
32 /* #undef HAVE_CRASHREPORTERCLIENT_H */
33 
34 /* can use __crashreporter_info__ */
35 #if defined(__APPLE__)
36 #define HAVE_CRASHREPORTER_INFO 1
37 #else
38 #define HAVE_CRASHREPORTER_INFO 0
39 #endif
40 
41 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
42    don't. */
43 #define HAVE_DECL_ARC4RANDOM 1
44 
45 /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
46    don't. */
47 #define HAVE_DECL_FE_ALL_EXCEPT 1
48 
49 /* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you
50    don't. */
51 #define HAVE_DECL_FE_INEXACT 1
52 
53 /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
54    don't. */
55 #define HAVE_DECL_STRERROR_S 0
56 
57 /* Define to 1 if you have the <dlfcn.h> header file. */
58 #define HAVE_DLFCN_H 1
59 
60 /* Define if dlopen() is available on this platform. */
61 #define HAVE_DLOPEN 1
62 
63 /* Define if dladdr() is available on this platform. */
64 #define HAVE_DLADDR 1
65 
66 #if !defined(__arm__) || defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__)
67 /* Define to 1 if we can register EH frames on this platform. */
68 #define HAVE_REGISTER_FRAME 1
69 
70 /* Define to 1 if we can deregister EH frames on this platform. */
71 #define HAVE_DEREGISTER_FRAME 1
72 #endif // !arm || USING_SJLJ_EXCEPTIONS || ARM_DWARF_EH_
73 
74 /* Define if __unw_add_dynamic_fde() is available on this platform. */
75 /* #undef HAVE_UNW_ADD_DYNAMIC_FDE */
76 
77 /* Define to 1 if you have the <errno.h> header file. */
78 #define HAVE_ERRNO_H 1
79 
80 /* Define to 1 if you have the <fcntl.h> header file. */
81 #define HAVE_FCNTL_H 1
82 
83 /* Define to 1 if you have the <fenv.h> header file. */
84 #define HAVE_FENV_H 1
85 
86 /* Define if libffi is available on this platform. */
87 /* #undef HAVE_FFI_CALL */
88 
89 /* Define to 1 if you have the <ffi/ffi.h> header file. */
90 /* #undef HAVE_FFI_FFI_H */
91 
92 /* Define to 1 if you have the <ffi.h> header file. */
93 /* #undef HAVE_FFI_H */
94 
95 /* Define to 1 if you have the `futimens' function. */
96 #define HAVE_FUTIMENS 1
97 
98 /* Define to 1 if you have the `futimes' function. */
99 #define HAVE_FUTIMES 1
100 
101 /* Define to 1 if you have the `getpagesize' function. */
102 #define HAVE_GETPAGESIZE 1
103 
104 /* Define to 1 if you have the `getrlimit' function. */
105 #define HAVE_GETRLIMIT 1
106 
107 /* Define to 1 if you have the `getrusage' function. */
108 #define HAVE_GETRUSAGE 1
109 
110 /* Define to 1 if you have the `isatty' function. */
111 #define HAVE_ISATTY 1
112 
113 /* Define to 1 if you have the `edit' library (-ledit). */
114 #define HAVE_LIBEDIT TRUE
115 
116 /* Define to 1 if you have the `pfm' library (-lpfm). */
117 /* #undef HAVE_LIBPFM */
118 
119 /* Define to 1 if the `perf_branch_entry' struct has field cycles. */
120 /* #undef LIBPFM_HAS_FIELD_CYCLES */
121 
122 /* Define to 1 if you have the `psapi' library (-lpsapi). */
123 /* #undef HAVE_LIBPSAPI */
124 
125 /* Define to 1 if you have the `pthread' library (-lpthread). */
126 #define HAVE_LIBPTHREAD 1
127 
128 /* Define to 1 if you have the `pthread_getname_np' function. */
129 #define HAVE_PTHREAD_GETNAME_NP 1
130 
131 /* Define to 1 if you have the `pthread_setname_np' function. */
132 #define HAVE_PTHREAD_SETNAME_NP 1
133 
134 /* Define to 1 if you have the <link.h> header file. */
135 #if __has_include(<link.h>)
136 #define HAVE_LINK_H 1
137 #else
138 #define HAVE_LINK_H 0
139 #endif
140 
141 /* Define to 1 if you have the <mach/mach.h> header file. */
142 #if __has_include(<mach/mach.h>)
143 #define HAVE_MACH_MACH_H 1
144 #endif
145 
146 /* Define to 1 if you have the `mallctl' function. */
147 #if defined(__FreeBSD__)
148 #define HAVE_MALLCTL 1
149 #endif
150 
151 /* Define to 1 if you have the `mallinfo' function. */
152 #if defined(__linux__)
153 #define HAVE_MALLINFO 1
154 #endif
155 
156 /* Define to 1 if you have the `mallinfo2' function. */
157 /* #undef HAVE_MALLINFO2 */
158 
159 /* Define to 1 if you have the <malloc/malloc.h> header file. */
160 #if __has_include(<malloc/malloc.h>)
161 #define HAVE_MALLOC_MALLOC_H 1
162 #endif
163 
164 /* Define to 1 if you have the `malloc_zone_statistics' function. */
165 #if defined(__APPLE__)
166 #define HAVE_MALLOC_ZONE_STATISTICS 1
167 #endif
168 
169 /* Define to 1 if you have the `posix_spawn' function. */
170 #define HAVE_POSIX_SPAWN 1
171 
172 /* Define to 1 if you have the `pread' function. */
173 #define HAVE_PREAD 1
174 
175 /* Define to 1 if you have the <pthread.h> header file. */
176 #define HAVE_PTHREAD_H 1
177 
178 /* Have pthread_mutex_lock */
179 #define HAVE_PTHREAD_MUTEX_LOCK 1
180 
181 /* Have pthread_rwlock_init */
182 #define HAVE_PTHREAD_RWLOCK_INIT 1
183 
184 /* Define to 1 if you have the `sbrk' function. */
185 #define HAVE_SBRK 1
186 
187 /* Define to 1 if you have the `setenv' function. */
188 #define HAVE_SETENV 1
189 
190 /* Define to 1 if you have the `setrlimit' function. */
191 #define HAVE_SETRLIMIT 1
192 
193 /* Define to 1 if you have the `sigaltstack' function. */
194 #define HAVE_SIGALTSTACK 1
195 
196 /* Define to 1 if you have the <signal.h> header file. */
197 #define HAVE_SIGNAL_H 1
198 
199 /* Define to 1 if you have the `strerror_r' function. */
200 #define HAVE_STRERROR_R 1
201 
202 /* Define to 1 if you have the `sysconf' function. */
203 #define HAVE_SYSCONF 1
204 
205 /* Define to 1 if you have the <sys/ioctl.h> header file. */
206 #define HAVE_SYS_IOCTL_H 1
207 
208 /* Define to 1 if you have the <sys/mman.h> header file. */
209 #define HAVE_SYS_MMAN_H 1
210 
211 /* Define to 1 if you have the <sys/param.h> header file. */
212 #define HAVE_SYS_PARAM_H 1
213 
214 /* Define to 1 if you have the <sys/resource.h> header file. */
215 #define HAVE_SYS_RESOURCE_H 1
216 
217 /* Define to 1 if you have the <sys/stat.h> header file. */
218 #define HAVE_SYS_STAT_H 1
219 
220 /* Define to 1 if you have the <sys/time.h> header file. */
221 #define HAVE_SYS_TIME_H 1
222 
223 /* Define to 1 if stat struct has st_mtimespec member .*/
224 #if !defined(__linux__)
225 #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
226 #endif
227 
228 /* Define to 1 if stat struct has st_mtim member. */
229 #if !defined(__APPLE__)
230 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
231 #endif
232 
233 /* Define to 1 if you have the <sys/types.h> header file. */
234 #define HAVE_SYS_TYPES_H 1
235 
236 /* Define if the setupterm() function is supported this platform. */
237 #if defined(__FreeBSD__)
238 /*
239  * This is only needed for terminalHasColors(). When disabled LLVM falls back
240  * to checking a list of TERM prefixes which is sufficient for a bootstrap tool.
241  */
242 #define LLVM_ENABLE_TERMINFO TRUE
243 #endif
244 
245 /* Define to 1 if you have the <termios.h> header file. */
246 #define HAVE_TERMIOS_H 1
247 
248 /* Define to 1 if you have the <unistd.h> header file. */
249 #define HAVE_UNISTD_H 1
250 
251 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */
252 /* #undef HAVE_VALGRIND_VALGRIND_H */
253 
254 /* Have host's _alloca */
255 /* #undef HAVE__ALLOCA */
256 
257 /* Define to 1 if you have the `_chsize_s' function. */
258 /* #undef HAVE__CHSIZE_S */
259 
260 /* Define to 1 if you have the `_Unwind_Backtrace' function. */
261 #define HAVE__UNWIND_BACKTRACE 1
262 
263 /* Have host's __alloca */
264 /* #undef HAVE___ALLOCA */
265 
266 /* Have host's __ashldi3 */
267 /* #undef HAVE___ASHLDI3 */
268 
269 /* Have host's __ashrdi3 */
270 /* #undef HAVE___ASHRDI3 */
271 
272 /* Have host's __chkstk */
273 /* #undef HAVE___CHKSTK */
274 
275 /* Have host's __chkstk_ms */
276 /* #undef HAVE___CHKSTK_MS */
277 
278 /* Have host's __cmpdi2 */
279 /* #undef HAVE___CMPDI2 */
280 
281 /* Have host's __divdi3 */
282 /* #undef HAVE___DIVDI3 */
283 
284 /* Have host's __fixdfdi */
285 /* #undef HAVE___FIXDFDI */
286 
287 /* Have host's __fixsfdi */
288 /* #undef HAVE___FIXSFDI */
289 
290 /* Have host's __floatdidf */
291 /* #undef HAVE___FLOATDIDF */
292 
293 /* Have host's __lshrdi3 */
294 /* #undef HAVE___LSHRDI3 */
295 
296 /* Have host's __main */
297 /* #undef HAVE___MAIN */
298 
299 /* Have host's __moddi3 */
300 /* #undef HAVE___MODDI3 */
301 
302 /* Have host's __udivdi3 */
303 /* #undef HAVE___UDIVDI3 */
304 
305 /* Have host's __umoddi3 */
306 /* #undef HAVE___UMODDI3 */
307 
308 /* Have host's ___chkstk */
309 /* #undef HAVE____CHKSTK */
310 
311 /* Have host's ___chkstk_ms */
312 /* #undef HAVE____CHKSTK_MS */
313 
314 /* Linker version detected at compile time. */
315 /* #undef HOST_LINK_VERSION */
316 
317 /* Define if overriding target triple is enabled */
318 /* #undef LLVM_TARGET_TRIPLE_ENV */
319 
320 /* Whether tools show host and target info when invoked with --version */
321 #define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1
322 
323 /* Define if libxml2 is supported on this platform. */
324 /* #undef LLVM_ENABLE_LIBXML2 */
325 
326 /* Define to the extension used for shared libraries, say, ".so". */
327 #if defined(__APPLE__)
328 #define LTDL_SHLIB_EXT ".dylib"
329 #else
330 #define LTDL_SHLIB_EXT ".so"
331 #endif
332 
333 /* Define to the extension used for plugin libraries, say, ".so". */
334 #if defined(__APPLE__)
335 #define LLVM_PLUGIN_EXT ".dylib"
336 #else
337 #define LLVM_PLUGIN_EXT ".so"
338 #endif
339 
340 /* Define to the address where bug reports for this package should be sent. */
341 #define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/"
342 
343 /* Define to the full name of this package. */
344 #define PACKAGE_NAME "LLVM"
345 
346 /* Define to the full name and version of this package. */
347 #define PACKAGE_STRING "LLVM 18.1.5"
348 
349 /* Define to the version of this package. */
350 #define PACKAGE_VERSION "18.1.5"
351 
352 /* Define to the vendor of this package. */
353 /* #undef PACKAGE_VENDOR */
354 
355 /* Define to a function implementing stricmp */
356 /* #undef stricmp */
357 
358 /* Define to a function implementing strdup */
359 /* #undef strdup */
360 
361 /* Whether GlobalISel rule coverage is being collected */
362 #define LLVM_GISEL_COV_ENABLED 0
363 
364 /* Define to the default GlobalISel coverage file prefix */
365 /* #undef LLVM_GISEL_COV_PREFIX */
366 
367 /* Whether Timers signpost passes in Xcode Instruments */
368 #if defined(__APPLE__)
369 #define LLVM_SUPPORT_XCODE_SIGNPOSTS 1
370 #else
371 #define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
372 #endif
373 
374 /* #undef HAVE_PROC_PID_RUSAGE */
375 
376 #define HAVE_BUILTIN_THREAD_POINTER 1
377 
378 #endif
379