From 9c9e249112ac0b5580736c56246fdf46e4471079 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 20 Jan 2009 16:26:16 +0000 Subject: [PATCH] In older compilers, only try to remove the profthreaded way if it exists Otherwise the testsuite driver fails. --- testsuite/config/ghc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 44aee44603..44541d7bd5 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -103,7 +103,7 @@ def get_compiler_info(): config.compiler_tags = v[1:] # remove profthreaded for GHC <6.9, it didn't work - if version_lt(config.compiler_version, '6.9'): + if ('profthreaded' in config.run_ways) and version_lt(config.compiler_version, '6.9'): config.run_ways.remove('profthreaded') if version_ge(config.compiler_version, '6.9'): -- GitLab