aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-03 10:40:38 -0500
committerJack Lloyd <[email protected]>2017-01-03 10:40:38 -0500
commita9430e152f7e82f74ca89967ef0a7c7d27fdc985 (patch)
tree0cd0e9049c41db4ea5733e2304051bd5895ace30 /src
parent4536a57020cdfb1c58316375999d3e50be704e92 (diff)
Avoid using target function attribute in Clang before 3.8
We support 3.5 or higher generally, but only Clang 3.8 has the function attributes. This doesn't affect the build with older Clang because the makefile still sets file-wide ISA flags. GCC supports this attribute in all versions we support. Fixes GH #797
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/compiler.h b/src/lib/utils/compiler.h
index 50441208b..6065b722a 100644
--- a/src/lib/utils/compiler.h
+++ b/src/lib/utils/compiler.h
@@ -34,7 +34,7 @@
/*
* Define BOTAN_FUNC_ISA
*/
-#if defined(__GNUG__) || defined(__clang__)
+#if defined(__GNUG__) || (BOTAN_CLANG_VERSION > 38)
#define BOTAN_FUNC_ISA(isa) __attribute__ ((target(isa)))
#else
#define BOTAN_FUNC_ISA(isa)