From a9430e152f7e82f74ca89967ef0a7c7d27fdc985 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 3 Jan 2017 10:40:38 -0500 Subject: 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 --- src/lib/utils/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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) -- cgit v1.2.3