aboutsummaryrefslogtreecommitdiff
path: root/lib/clang/include/llvm/Config/config.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-07-25 00:06:18 +0000
committerEd Maste <emaste@FreeBSD.org>2018-07-25 00:06:18 +0000
commite92a42059b182413f9a6b304d89dcd7eefa2c529 (patch)
tree31ab50e56155507083347021ae4fa666b0a22aaa /lib/clang/include/llvm/Config/config.h
parentc9a49a4fd80541d3bd567fcb3023d7ab389df3bf (diff)
downloadsrc-e92a42059b182413f9a6b304d89dcd7eefa2c529.tar.gz
src-e92a42059b182413f9a6b304d89dcd7eefa2c529.zip
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
Notes
Notes: svn path=/head/; revision=336691
Diffstat (limited to 'lib/clang/include/llvm/Config/config.h')
-rw-r--r--lib/clang/include/llvm/Config/config.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index ae7e9080c974..3ac238b9821c 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -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