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