xref: /llvm-project/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h (revision 58c6d440f8c24ef1532d12e50302e290e1907a87)
1 /*===------- llvm/Config/config.h - llvm configuration ------------*- C -*-===*/
2 /*                                                                            */
3 /* Part of the LLVM Project, under the Apache License v2.0 with LLVM          */
4 /* Exceptions.                                                                */
5 /* See https://llvm.org/LICENSE.txt for license information.                  */
6 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception                    */
7 /*                                                                            */
8 /*===----------------------------------------------------------------------===*/
9 
10 /* This is a manual port of config.h.cmake for the symbols that do not change
11    based on platform. Those that do change should not be defined here and
12    instead use Bazel cc_library defines. Some attempt has been made to extract
13    such symbols that do vary based on platform (for the platforms we care about)
14    into Bazel defines, but it is by no means complete, so if you see something
15    that looks wrong, it probably is. */
16 
17 #ifndef CONFIG_H
18 #define CONFIG_H
19 
20 // Include this header only under the llvm source tree.
21 // This is a private header.
22 
23 /* Exported configuration */
24 #include "llvm/Config/llvm-config.h"
25 
26 /* Bug report URL. */
27 #define BUG_REPORT_URL "https://github.com/llvm/llvm-project/issues/"
28 
29 /* Define to 1 to enable backtraces, and to 0 otherwise. */
30 #define ENABLE_BACKTRACES 1
31 
32 /* Define to 1 to enable crash overrides, and to 0 otherwise. */
33 #define ENABLE_CRASH_OVERRIDES 1
34 
35 /* Define to 1 to enable crash memory dumps, and to 0 otherwise. */
36 #define LLVM_ENABLE_CRASH_DUMPS 0
37 
38 /* Define to 1 to prefer forward slashes on Windows, and to 0 prefer
39    backslashes. */
40 #define LLVM_WINDOWS_PREFER_FORWARD_SLASH 0
41 
42 /* Define to 1 if you have the `backtrace' function. */
43 /* HAVE_BACKTRACE defined in Bazel */
44 
45 /* BACKTRACE_HEADER defined in Bazel */
46 
47 /* Define to 1 if you have the <CrashReporterClient.h> header file. */
48 /* HAVE_CRASHREPORTERCLIENT_H defined in Bazel */
49 
50 /* can use __crashreporter_info__ */
51 /* HAVE_CRASHREPORTER_INFO  defined in Bazel */
52 
53 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
54    don't. */
55 #define HAVE_DECL_ARC4RANDOM 0
56 
57 /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
58    don't. */
59 #define HAVE_DECL_FE_ALL_EXCEPT 1
60 
61 /* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you
62    don't. */
63 #define HAVE_DECL_FE_INEXACT 1
64 
65 /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
66    don't. */
67 #define HAVE_DECL_STRERROR_S 0
68 
69 /* Define if dlopen() is available on this platform. */
70 #define HAVE_DLOPEN 1
71 
72 /* Define to 1 if we can register EH frames on this platform. */
73 /* HAVE_REGISTER_FRAME defined in Bazel*/
74 
75 /* Define to 1 if we can deregister EH frames on this platform. */
76 /* HAVE_DEREGISTER_FRAME defined in Bazel*/
77 
78 /* Define if __unw_add_dynamic_fde() is available on this platform. */
79 /* HAVE_UNW_ADD_DYNAMIC_FDE defined in Bazel */
80 
81 /* Define if libffi is available on this platform. */
82 /* #undef HAVE_FFI_CALL */
83 
84 /* Define to 1 if you have the <ffi/ffi.h> header file. */
85 /* #undef HAVE_FFI_FFI_H */
86 
87 /* Define to 1 if you have the <ffi.h> header file. */
88 /* #undef HAVE_FFI_H */
89 
90 /* Define to 1 if you have the `futimens' function. */
91 #define HAVE_FUTIMENS 1
92 
93 /* Define to 1 if you have the `futimes' function. */
94 #define HAVE_FUTIMES 1
95 
96 /* Define to 1 if you have the `getpagesize' function. */
97 #define HAVE_GETPAGESIZE 1
98 
99 /* Define to 1 if you have the `getrusage' function. */
100 #define HAVE_GETRUSAGE 1
101 
102 /* Define to 1 if you have the `isatty' function. */
103 #define HAVE_ISATTY 1
104 
105 /* Define to 1 if you have the `edit' library (-ledit). */
106 /* #undef HAVE_LIBEDIT */
107 
108 /* Define to 1 if you have the `pfm' library (-lpfm). */
109 /* #undef HAVE_LIBPFM */
110 
111 /* Define to 1 if the `perf_branch_entry' struct has field cycles. */
112 /* #undef LIBPFM_HAS_FIELD_CYCLES */
113 
114 /* Define to 1 if you have the `psapi' library (-lpsapi). */
115 /* #undef HAVE_LIBPSAPI */
116 
117 /* Define to 1 if you have the `pthread' library (-lpthread). */
118 #define HAVE_LIBPTHREAD 1
119 
120 /* Define to 1 if you have the `pthread_getname_np' function. */
121 #define HAVE_PTHREAD_GETNAME_NP 1
122 
123 /* Define to 1 if you have the `pthread_setname_np' function. */
124 #define HAVE_PTHREAD_SETNAME_NP 1
125 
126 /* Define to 1 if you have the <mach/mach.h> header file. */
127 /* HAVE_MACH_MACH_H defined in Bazel */
128 
129 /* Define to 1 if you have the `mallctl' function. */
130 /* #undef HAVE_MALLCTL */
131 
132 /* Define to 1 if you have the `mallinfo' function. */
133 /* HAVE_MALLINFO defined in Bazel */
134 
135 /* Define to 1 if you have the <malloc/malloc.h> header file. */
136 /* HAVE_MALLOC_MALLOC_H defined in Bazel */
137 
138 /* Define to 1 if you have the `malloc_zone_statistics' function. */
139 /* HAVE_MALLOC_ZONE_STATISTICS defined in Bazel */
140 
141 /* Define to 1 if you have the `posix_spawn' function. */
142 #define HAVE_POSIX_SPAWN 1
143 
144 /* Define to 1 if you have the `pread' function. */
145 #define HAVE_PREAD 1
146 
147 /* Define to 1 if you have the <pthread.h> header file. */
148 /* HAVE_PTHREAD_H defined in Bazel */
149 
150 /* Have pthread_mutex_lock */
151 #define HAVE_PTHREAD_MUTEX_LOCK 1
152 
153 /* Have pthread_rwlock_init */
154 #define HAVE_PTHREAD_RWLOCK_INIT 1
155 
156 /* Define to 1 if you have the `sbrk' function. */
157 /* HAVE_SBRK defined in Bazel */
158 
159 /* Define to 1 if you have the `setenv' function. */
160 /* HAVE_SETENV defined in Bazel */
161 
162 /* Define to 1 if you have the `sigaltstack' function. */
163 #define HAVE_SIGALTSTACK 1
164 
165 /* Define to 1 if you have the `strerror_r' function. */
166 /* HAVE_STRERROR_R defined in Bazel */
167 
168 /* Define to 1 if you have the `sysconf' function. */
169 #define HAVE_SYSCONF 1
170 
171 /* Define to 1 if you have the <sys/mman.h> header file. */
172 #define HAVE_SYS_MMAN_H 1
173 
174 /* Define to 1 if stat struct has st_mtimespec member .*/
175 /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
176 
177 /* Define to 1 if stat struct has st_mtim member. */
178 /* HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC defined in Bazel */
179 
180 /* Define to 1 if you have the <unistd.h> header file. */
181 /* HAVE_UNISTD_H defined in Bazel */
182 
183 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */
184 /* #undef HAVE_VALGRIND_VALGRIND_H */
185 
186 /* Have host's _alloca */
187 /* #undef HAVE__ALLOCA */
188 
189 /* Define to 1 if you have the `_chsize_s' function. */
190 /* #undef HAVE__CHSIZE_S */
191 
192 /* Define to 1 if you have the `_Unwind_Backtrace' function. */
193 #define HAVE__UNWIND_BACKTRACE 1
194 
195 /* Have host's __alloca */
196 /* #undef HAVE___ALLOCA */
197 
198 /* Have host's __ashldi3 */
199 /* #undef HAVE___ASHLDI3 */
200 
201 /* Have host's __ashrdi3 */
202 /* #undef HAVE___ASHRDI3 */
203 
204 /* Have host's __chkstk */
205 /* #undef HAVE___CHKSTK */
206 
207 /* Have host's __chkstk_ms */
208 /* #undef HAVE___CHKSTK_MS */
209 
210 /* Have host's __cmpdi2 */
211 /* #undef HAVE___CMPDI2 */
212 
213 /* Have host's __divdi3 */
214 /* #undef HAVE___DIVDI3 */
215 
216 /* Have host's __fixdfdi */
217 /* #undef HAVE___FIXDFDI */
218 
219 /* Have host's __fixsfdi */
220 /* #undef HAVE___FIXSFDI */
221 
222 /* Have host's __floatdidf */
223 /* #undef HAVE___FLOATDIDF */
224 
225 /* Have host's __lshrdi3 */
226 /* #undef HAVE___LSHRDI3 */
227 
228 /* Have host's __main */
229 /* #undef HAVE___MAIN */
230 
231 /* Have host's __moddi3 */
232 /* #undef HAVE___MODDI3 */
233 
234 /* Have host's __udivdi3 */
235 /* #undef HAVE___UDIVDI3 */
236 
237 /* Have host's __umoddi3 */
238 /* #undef HAVE___UMODDI3 */
239 
240 /* Have host's ___chkstk */
241 /* #undef HAVE____CHKSTK */
242 
243 /* Have host's ___chkstk_ms */
244 /* #undef HAVE____CHKSTK_MS */
245 
246 /* Linker version detected at compile time. */
247 /* #undef HOST_LINK_VERSION */
248 
249 /* Define if zlib compression is available */
250 /* LLVM_ENABLE_ZLIB defined in Bazel */
251 
252 /* Define if overriding target triple is enabled */
253 /* #undef LLVM_TARGET_TRIPLE_ENV */
254 
255 /* Whether tools show host and target info when invoked with --version */
256 #define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1
257 
258 /* Whether tools show optional build config flags when invoked with --version */
259 #define LLVM_VERSION_PRINTER_SHOW_BUILD_CONFIG 1
260 
261 /* Define if libxml2 is supported on this platform. */
262 /* #undef LLVM_ENABLE_LIBXML2 */
263 
264 /* Define to the extension used for shared libraries, say, ".so". */
265 /* LTDL_SHLIB_EXT defined in Bazel */
266 
267 /* Define to the address where bug reports for this package should be sent. */
268 #define PACKAGE_BUGREPORT "https://github.com/llvm/llvm-project/issues/"
269 
270 /* Define to the full name of this package. */
271 #define PACKAGE_NAME "LLVM"
272 
273 /* Define to the full name and version of this package. */
274 #define PACKAGE_STRING PACKAGE_NAME " " LLVM_VERSION_STRING
275 
276 /* Define to the version of this package. */
277 #define PACKAGE_VERSION LLVM_VERSION_STRING
278 
279 /* Define to the vendor of this package. */
280 /* #undef PACKAGE_VENDOR */
281 
282 /* Define to a function implementing stricmp */
283 /* stricmp defined conditionally below. */
284 
285 /* Define to a function implementing strdup */
286 /* strdup defined conditionally below. */
287 
288 /* Whether GlobalISel rule coverage is being collected */
289 #define LLVM_GISEL_COV_ENABLED 0
290 
291 /* Define to the default GlobalISel coverage file prefix */
292 /* #undef LLVM_GISEL_COV_PREFIX */
293 
294 /* Whether Timers signpost passes in Xcode Instruments */
295 #define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
296 
297 /* HAVE_PROC_PID_RUSAGE defined in Bazel */
298 
299 /* Directly provide definitions here behind platform preprocessor definitions.
300  * The preprocessor conditions are sufficient to handle all of the configuration
301  * on platforms targeted by Bazel, and defining these here more faithfully
302  * matches how the users of this header expect things to work with CMake.
303  * FIXME: We should consider moving other platform defines to use this technique
304  * as well.
305  */
306 
307 #ifdef _WIN32
308 #define stricmp _stricmp
309 #define strdup _strdup
310 #endif
311 
312 #endif
313