llvm: remove __FreeBSD_version conditionals
All supported FreeBSD build host versions have backtrace.h, so we can just eliminate that test. For futimes() we can test the compiler's built-in __FreeBSD__ major version rather than relying on including osreldate.h. This should reduce the frequency with which Clang gets rebuilt when building world. Reviewed by: dim Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c9a49a4fd8
commit
e92a42059b
@ -2,9 +2,6 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
/* Get __FreeBSD_version. */
|
||||
#include <osreldate.h>
|
||||
|
||||
/* Exported configuration */
|
||||
#include "llvm/Config/llvm-config.h"
|
||||
|
||||
@ -17,12 +14,10 @@
|
||||
/* Define to 1 to enable crash overrides, and to 0 otherwise. */
|
||||
#define ENABLE_CRASH_OVERRIDES 1
|
||||
|
||||
#if __FreeBSD_version >= 1000052
|
||||
/* Define to 1 if you have the `backtrace' function. */
|
||||
#define HAVE_BACKTRACE TRUE
|
||||
|
||||
#define BACKTRACE_HEADER <execinfo.h>
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <CrashReporterClient.h> header file. */
|
||||
/* #undef HAVE_CRASHREPORTERCLIENT_H */
|
||||
@ -81,7 +76,7 @@
|
||||
/* #undef HAVE_FFI_H */
|
||||
|
||||
/* Define to 1 if you have the `futimens' function. */
|
||||
#if __FreeBSD_version >= 1100056
|
||||
#if __FreeBSD__ >= 11
|
||||
#define HAVE_FUTIMENS 1
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user