diff --git a/tensorflow/lite/experimental/ruy/detect_dotprod.cc b/tensorflow/lite/experimental/ruy/detect_dotprod.cc index 0987df0b4d4..d08121f85e5 100644 --- a/tensorflow/lite/experimental/ruy/detect_dotprod.cc +++ b/tensorflow/lite/experimental/ruy/detect_dotprod.cc @@ -19,7 +19,9 @@ limitations under the License. // EXC_BAD_INSTRUCTION is actually a different signal? // Anyway, we don't need this code on Apple devices at the moment, as none of // them supports dot-product instructions at the moment. -#if defined __aarch64__ && !defined __APPLE__ +// In fact, for the moment, we only care about Linux, so restricting to it +// limits our risk. +#if defined __aarch64__ && defined __linux__ #define RUY_IMPLEMENT_DETECT_DOTPROD #endif