diff options
author | Simon Marlow <simonmar@microsoft.com> | 2008-02-29 10:06:24 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2008-02-29 10:06:24 +0000 |
commit | 42f8287d832f141ee00cefe985f13e40eaf12558 (patch) | |
tree | 1b81eac4a7373417046d1d60ad37c5d12b9bb13e /testsuite/config | |
parent | d844cf00f861a41633004b9df2c45e7f176eead0 (diff) | |
download | haskell-42f8287d832f141ee00cefe985f13e40eaf12558.tar.gz |
enable profthreaded only for GHC 6.9+
Diffstat (limited to 'testsuite/config')
-rw-r--r-- | testsuite/config/ghc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc index 7138bf13e9..23b7fcb521 100644 --- a/testsuite/config/ghc +++ b/testsuite/config/ghc @@ -36,8 +36,6 @@ if (ghc_with_profiling == 1): if (ghc_with_native_codegen == 1): config.compile_ways.append('profasm') config.run_ways.append('profasm') - if (ghc_with_threaded_rts == 1): - config.run_ways.append('profthreaded') if (ghc_with_interpreter == 1): config.run_ways.append('ghci') @@ -100,3 +98,9 @@ def get_compiler_info(): config.compiler_version = v[0] config.compiler_maj_version = re.sub('^([0-9]+\.[0-9]+).*',r'\1', v[0]) config.compiler_tags = v[1:] + + # enable profthreaded only for GHC 6.9+ with profiling & threaded RTS: + if version_ge(config.compiler_version, '6.9') \ + and ghc_with_profiling == 1 \ + and ghc_with_threaded_rts == 1: + config.run_ways.append('profthreaded') |