Skip to content
Snippets Groups Projects
Commit 2daf1ddd authored by Cheng Shao's avatar Cheng Shao Committed by Zubin
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.

(cherry picked from commit b4c3c340)
(cherry picked from commit 17386f36)
parent cd124d94
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