Skip to content
Snippets Groups Projects
Commit b4c3c340 authored by Cheng Shao's avatar Cheng Shao
Browse files

testsuite: don't use host cpu features when testing cross ghc

This patch disables CPU feature detection logic when testing cross
GHC, since those features don't make sense for the target anyway.
parent 8c74a0ed
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment