Skip to content

Commit

Permalink
llvm: remove __FreeBSD_version conditionals
Browse files Browse the repository at this point in the history
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.

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
emaste committed Jun 3, 2018
1 parent 77572f5 commit b03c6b0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/clang/include/llvm/Config/config.h
Expand Up @@ -2,9 +2,6 @@
#ifndef CONFIG_H
#define CONFIG_H

/* Get __FreeBSD_version. */
#include <osreldate.h>

/* Exported configuration */
#include "llvm/Config/llvm-config.h"

Expand All @@ -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 */
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b03c6b0

Please sign in to comment.