ghc 979 Bytes
Newer Older
1
2
3
4
5
6
7
8
# Testsuite configuration setup for GHC
#
# This file is Python source
#
config.compiler_type         = 'ghc'
config.compiler              = 'ghc'
config.compiler_always_flags = ['-no-recomp', '-dcore-lint']

9
10
11
12
13
# By default, we test the 'normal' and 'opt' ways.
# 'optasm' is added by mk/test.mk if the compiler has a native code gen,
# 'prof'   is added by mk/test.mk if the profiling way is enabled.
config.compile_ways	     = ['normal', 'opt']
config.run_ways		     = ['normal', 'opt']
14

15
16
17
18
19
20
21
22
if (ghc_with_native_codegen == 1):
	config.compile_ways.append('optasm')
	config.run_ways.append('optasm')

if (ghc_with_profiling == 1):
	config.compile_ways.append('prof')
	config.run_ways.append('prof')

23
24
25
if (ghc_with_interpreter == 1):
	config.run_ways.append('ghci')

26
27
28
29
config.way_flags = { 'normal' : [],
		     'opt'    : ['-O'],
		     'optasm' : ['-O -fasm'],
	  	     'prof'   : ['-O -prof -auto-all'],
30
31
		     'unreg'  : ['-unreg'],
		     'ghci'   : ['--interactive', '-v0']
32
		   }
33