Changeset View
Changeset View
Standalone View
Standalone View
lib/clang/include/llvm/Config/config.h
Show All 23 Lines | |||||
#define HAVE_BACKTRACE TRUE | #define HAVE_BACKTRACE TRUE | ||||
#define BACKTRACE_HEADER <execinfo.h> | #define BACKTRACE_HEADER <execinfo.h> | ||||
/* Define to 1 if you have the <CrashReporterClient.h> header file. */ | /* Define to 1 if you have the <CrashReporterClient.h> header file. */ | ||||
/* #undef HAVE_CRASHREPORTERCLIENT_H */ | /* #undef HAVE_CRASHREPORTERCLIENT_H */ | ||||
/* can use __crashreporter_info__ */ | /* can use __crashreporter_info__ */ | ||||
#if defined(__APPLE__) | |||||
#define HAVE_CRASHREPORTER_INFO 1 | |||||
#else | |||||
#define HAVE_CRASHREPORTER_INFO 0 | #define HAVE_CRASHREPORTER_INFO 0 | ||||
#endif | |||||
/* Define to 1 if you have the declaration of `arc4random', and to 0 if you | /* Define to 1 if you have the declaration of `arc4random', and to 0 if you | ||||
don't. */ | don't. */ | ||||
#define HAVE_DECL_ARC4RANDOM 1 | #define HAVE_DECL_ARC4RANDOM 1 | ||||
/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you | /* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you | ||||
don't. */ | don't. */ | ||||
#define HAVE_DECL_FE_ALL_EXCEPT 1 | #define HAVE_DECL_FE_ALL_EXCEPT 1 | ||||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
/* Define to 1 if you have the `pthread_getname_np' function. */ | /* Define to 1 if you have the `pthread_getname_np' function. */ | ||||
#define HAVE_PTHREAD_GETNAME_NP 1 | #define HAVE_PTHREAD_GETNAME_NP 1 | ||||
/* Define to 1 if you have the `pthread_setname_np' function. */ | /* Define to 1 if you have the `pthread_setname_np' function. */ | ||||
#define HAVE_PTHREAD_SETNAME_NP 1 | #define HAVE_PTHREAD_SETNAME_NP 1 | ||||
/* Define to 1 if you have the <link.h> header file. */ | /* Define to 1 if you have the <link.h> header file. */ | ||||
#if __has_include(<link.h>) | |||||
#define HAVE_LINK_H 1 | #define HAVE_LINK_H 1 | ||||
#else | |||||
#define HAVE_LINK_H 0 | |||||
#endif | |||||
/* Define to 1 if you have the `lseek64' function. */ | /* Define to 1 if you have the `lseek64' function. */ | ||||
/* #undef HAVE_LSEEK64 */ | #if defined(__linux__) | ||||
#define HAVE_LSEEK64 1 | |||||
#endif | |||||
/* Define to 1 if you have the <mach/mach.h> header file. */ | /* Define to 1 if you have the <mach/mach.h> header file. */ | ||||
/* #undef HAVE_MACH_MACH_H */ | #if __has_include(<mach/mach.h>) | ||||
#define HAVE_MACH_MACH_H 1 | |||||
#endif | |||||
/* Define to 1 if you have the `mallctl' function. */ | /* Define to 1 if you have the `mallctl' function. */ | ||||
#if defined(__FreeBSD__) | |||||
#define HAVE_MALLCTL 1 | #define HAVE_MALLCTL 1 | ||||
#endif | |||||
/* Define to 1 if you have the `mallinfo' function. */ | /* Define to 1 if you have the `mallinfo' function. */ | ||||
/* #undef HAVE_MALLINFO */ | #if defined(__linux__) | ||||
#define HAVE_MALLINFO 1 | |||||
#endif | |||||
/* Define to 1 if you have the <malloc/malloc.h> header file. */ | /* Define to 1 if you have the <malloc/malloc.h> header file. */ | ||||
/* #undef HAVE_MALLOC_MALLOC_H */ | #if __has_include(<malloc/malloc.h>) | ||||
#define HAVE_MALLOC_MALLOC_H 1 | |||||
#endif | |||||
/* Define to 1 if you have the `malloc_zone_statistics' function. */ | /* Define to 1 if you have the `malloc_zone_statistics' function. */ | ||||
/* #undef HAVE_MALLOC_ZONE_STATISTICS */ | #if defined(__APPLE__) | ||||
#define HAVE_MALLOC_ZONE_STATISTICS 1 | |||||
#endif | |||||
/* Define to 1 if you have the `posix_fallocate' function. */ | /* Define to 1 if you have the `posix_fallocate' function. */ | ||||
#if !defined(__APPLE__) | |||||
#define HAVE_POSIX_FALLOCATE 1 | #define HAVE_POSIX_FALLOCATE 1 | ||||
#endif | |||||
/* Define to 1 if you have the `posix_spawn' function. */ | /* Define to 1 if you have the `posix_spawn' function. */ | ||||
#define HAVE_POSIX_SPAWN 1 | #define HAVE_POSIX_SPAWN 1 | ||||
/* Define to 1 if you have the `pread' function. */ | /* Define to 1 if you have the `pread' function. */ | ||||
#define HAVE_PREAD 1 | #define HAVE_PREAD 1 | ||||
/* Have pthread_getspecific */ | /* Have pthread_getspecific */ | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
/* Define to 1 if you have the <sys/stat.h> header file. */ | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||||
#define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_STAT_H 1 | ||||
/* Define to 1 if you have the <sys/time.h> header file. */ | /* Define to 1 if you have the <sys/time.h> header file. */ | ||||
#define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TIME_H 1 | ||||
/* Define to 1 if stat struct has st_mtimespec member .*/ | /* Define to 1 if stat struct has st_mtimespec member .*/ | ||||
#if !defined(__linux__) | |||||
#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 | ||||
#endif | |||||
/* Define to 1 if stat struct has st_mtim member. */ | /* Define to 1 if stat struct has st_mtim member. */ | ||||
#if !defined(__APPLE__) | |||||
#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 | ||||
#endif | |||||
/* Define to 1 if you have the <sys/types.h> header file. */ | /* Define to 1 if you have the <sys/types.h> header file. */ | ||||
#define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_TYPES_H 1 | ||||
/* Define if the setupterm() function is supported this platform. */ | /* Define if the setupterm() function is supported this platform. */ | ||||
#if defined(__FreeBSD__) | |||||
jrtc27: I think we should still enable it on FreeBSD, it works fine there already so this could… | |||||
Done Inline ActionsThat's fine too. Since ncurses is assumed to be available unconditionally on the host that seems fine. The only problem I can think of is that it might cause issues for shared builds after upgrading ncurses soversion. Is that something we should worry about? arichardson: That's fine too. Since ncurses is assumed to be available unconditionally on the host that… | |||||
Done Inline ActionsWell that already needs to be handled carefully today, not a new issue. Plus bumping the ncurses soname is a rare event... jrtc27: Well that already needs to be handled carefully today, not a new issue. Plus bumping the… | |||||
/* | |||||
* This is only needed for terminalHasColors(). When disabled LLVM falls back | |||||
* to checking a list of TERM prefixes which is sufficient for a bootstrap tool. | |||||
*/ | |||||
#define LLVM_ENABLE_TERMINFO 1 | #define LLVM_ENABLE_TERMINFO 1 | ||||
#endif | |||||
Done Inline ActionsThis is why ncurses is not needed for macos but is on FreeBSD/Linux. Will upload a new patch that avoids terminfo for bootstrap tools. arichardson: This is why ncurses is not needed for macos but is on FreeBSD/Linux. Will upload a new patch… | |||||
/* Define if the xar_open() function is supported this platform. */ | /* Define if the xar_open() function is supported this platform. */ | ||||
/* #undef HAVE_LIBXAR */ | #if defined(__APPLE__) | ||||
#define HAVE_LIBXAR | |||||
#endif | |||||
/* Define to 1 if you have the <termios.h> header file. */ | /* Define to 1 if you have the <termios.h> header file. */ | ||||
#define HAVE_TERMIOS_H 1 | #define HAVE_TERMIOS_H 1 | ||||
/* Define to 1 if you have the <unistd.h> header file. */ | /* Define to 1 if you have the <unistd.h> header file. */ | ||||
#define HAVE_UNISTD_H 1 | #define HAVE_UNISTD_H 1 | ||||
/* Define to 1 if you have the <valgrind/valgrind.h> header file. */ | /* Define to 1 if you have the <valgrind/valgrind.h> header file. */ | ||||
/* #undef HAVE_VALGRIND_VALGRIND_H */ | /* #undef HAVE_VALGRIND_VALGRIND_H */ | ||||
/* Have host's _alloca */ | /* Have host's _alloca */ | ||||
/* #undef HAVE__ALLOCA */ | /* #undef HAVE__ALLOCA */ | ||||
/* Define to 1 if you have the `_chsize_s' function. */ | /* Define to 1 if you have the `_chsize_s' function. */ | ||||
/* #undef HAVE__CHSIZE_S */ | /* #undef HAVE__CHSIZE_S */ | ||||
/* Define to 1 if you have the `_Unwind_Backtrace' function. */ | /* Define to 1 if you have the `_Unwind_Backtrace' function. */ | ||||
/* #undef HAVE__UNWIND_BACKTRACE */ | #if !defined(__FreeBSD__) | ||||
#define HAVE__UNWIND_BACKTRACE 1 | |||||
#endif | |||||
/* Have host's __alloca */ | /* Have host's __alloca */ | ||||
/* #undef HAVE___ALLOCA */ | /* #undef HAVE___ALLOCA */ | ||||
/* Have host's __ashldi3 */ | /* Have host's __ashldi3 */ | ||||
/* #undef HAVE___ASHLDI3 */ | /* #undef HAVE___ASHLDI3 */ | ||||
/* Have host's __ashrdi3 */ | /* Have host's __ashrdi3 */ | ||||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
/* Whether tools show host and target info when invoked with --version */ | /* Whether tools show host and target info when invoked with --version */ | ||||
#define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1 | #define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1 | ||||
/* Define if libxml2 is supported on this platform. */ | /* Define if libxml2 is supported on this platform. */ | ||||
/* #undef LLVM_LIBXML2_ENABLED */ | /* #undef LLVM_LIBXML2_ENABLED */ | ||||
/* Define to the extension used for shared libraries, say, ".so". */ | /* Define to the extension used for shared libraries, say, ".so". */ | ||||
#if defined(__APPLE__) | |||||
#define LTDL_SHLIB_EXT ".dylib" | |||||
#else | |||||
#define LTDL_SHLIB_EXT ".so" | #define LTDL_SHLIB_EXT ".so" | ||||
#endif | |||||
/* Define to the address where bug reports for this package should be sent. */ | /* Define to the address where bug reports for this package should be sent. */ | ||||
#define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/" | #define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/" | ||||
/* Define to the full name of this package. */ | /* Define to the full name of this package. */ | ||||
#define PACKAGE_NAME "LLVM" | #define PACKAGE_NAME "LLVM" | ||||
/* Define to the full name and version of this package. */ | /* Define to the full name and version of this package. */ | ||||
Show All 19 Lines | |||||
/* Whether GlobalISel rule coverage is being collected */ | /* Whether GlobalISel rule coverage is being collected */ | ||||
#define LLVM_GISEL_COV_ENABLED 0 | #define LLVM_GISEL_COV_ENABLED 0 | ||||
/* Define to the default GlobalISel coverage file prefix */ | /* Define to the default GlobalISel coverage file prefix */ | ||||
/* #undef LLVM_GISEL_COV_PREFIX */ | /* #undef LLVM_GISEL_COV_PREFIX */ | ||||
/* Whether Timers signpost passes in Xcode Instruments */ | /* Whether Timers signpost passes in Xcode Instruments */ | ||||
#if defined(__APPLE__) | |||||
#define LLVM_SUPPORT_XCODE_SIGNPOSTS 1 | |||||
#else | |||||
#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0 | #define LLVM_SUPPORT_XCODE_SIGNPOSTS 0 | ||||
#endif | |||||
#endif | #endif |
I think we should still enable it on FreeBSD, it works fine there already so this could potentially regress colours in certain weird cases. Simplifies the Makefiles too, you can use the same condition for execinfo as for ncursesw.