From e5a932f79e127de3219025400395145ae236f559 Mon Sep 17 00:00:00 2001 From: Thomas Flouris Date: Tue, 11 Jul 2017 18:16:10 +0100 Subject: [PATCH] hardware detection for APPLE now defaults to assembly code - issue #138 --- src/hardware.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/hardware.c b/src/hardware.c index 8bbd151..2241d4a 100644 --- a/src/hardware.c +++ b/src/hardware.c @@ -21,7 +21,15 @@ #include "pll.h" -#if (!defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 4 || \ +/* + Apple machines should always default to assembly code due to + inconsistent versioning in LLVM/clang, see issue #138 + + https://github.com/xflouris/libpll/issues/138 + +*/ +#if (defined(__APPLE__)) || \ + (!defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 4 || \ (__GNUC__ == 4 && __GNUC_MINOR__ < 8))) || \ (defined(__clang__) && (__clang_major__ < 3 || \ (__clang_major__ == 3 && __clang_minor__ < 9)))