svn commit: r336691 - head/lib/clang/include/llvm/Config
Ed Maste
emaste at FreeBSD.org
Wed Jul 25 00:06:19 UTC 2018
Author: emaste
Date: Wed Jul 25 00:06:18 2018
New Revision: 336691
URL: https://svnweb.freebsd.org/changeset/base/336691
Log:
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
Modified:
head/lib/clang/include/llvm/Config/config.h
Modified: head/lib/clang/include/llvm/Config/config.h
==============================================================================
--- head/lib/clang/include/llvm/Config/config.h Tue Jul 24 23:40:27 2018 (r336690)
+++ head/lib/clang/include/llvm/Config/config.h Wed Jul 25 00:06:18 2018 (r336691)
@@ -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
More information about the svn-src-head
mailing list