Skip to content
Snippets Groups Projects
Commit 4124ec97 authored by Cheng Shao's avatar Cheng Shao :beach:
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.

(cherry picked from commit c4c6d714)
(cherry picked from commit 07641012)
parent 99f53099
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