diff --git a/testsuite/driver/cpu_features.py b/testsuite/driver/cpu_features.py index 66ee0756adf735a168f91a201ae942b5d4cc885d..b7e7a0d648e27e32bad98ba8901afd7563f81067 100644 --- a/testsuite/driver/cpu_features.py +++ b/testsuite/driver/cpu_features.py @@ -17,6 +17,9 @@ SUPPORTED_CPU_FEATURES = { cpu_feature_cache = None def get_cpu_features(): + # Don't use host cpu features when testing cross ghc. + if config.cross: + return [] try: # This import might fail, e.g. if "ctypes" is not available, # in which case we report the empty set of features.