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)))