Skip to content
Snippets Groups Projects
Commit c4c6d714 authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
Browse files

testsuite: don't attempt to detect host cpu features when testing cross ghc

The testsuite driver CPU feature detection logic only detects host CPU
and only makes sense when we are not testing a cross GHC.
parent c739383b
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,11 @@ SUPPORTED_CPU_FEATURES = {
cpu_feature_cache = None
def get_cpu_features():
# we're testing a cross ghc, don't attempt to detect host cpu
# configuration
if config.target_wrapper is not None:
return {}
if config.os in ['mingw32', 'linux'] and os.path.exists('/proc/cpuinfo'):
with open('/proc/cpuinfo') as x:
f = x.read()
......
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