Skip to content

Commit

Permalink
hardware detection for APPLE now defaults to assembly code - issue #138
Browse files Browse the repository at this point in the history
  • Loading branch information
xflouris committed Jul 11, 2017
1 parent c18629d commit e5a932f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit e5a932f

Please sign in to comment.