Only assume baseline features if InferFromOS fails.
This fixes 'CAN_RUN()' on platforms that lack kCRC32, as long as InferFromOS is
implemented.
Change-Id: Iedf9d86ba07ede88d3a45d466bce6059260bdf8d
diff --git a/src/cpu-features.h b/src/cpu-features.h
index 77e056f..012c5e4 100644
--- a/src/cpu-features.h
+++ b/src/cpu-features.h
@@ -274,6 +274,7 @@
// Return the number of enabled features.
size_t Count() const;
+ bool HasNoFeatures() const { return Count() == 0; }
// Check for equivalence.
bool operator==(const CPUFeatures& other) const {