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

9 10 11 12
config.hp2ps		     = 'hp2ps'
config.gs		     = 'gs'
config.confdir               = '.'

andy@galois.com's avatar
andy@galois.com committed
13
# By default, we test the 'normal', 'opt' and 'hpc' ways.
14 15
# '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.
16 17
config.compile_ways	     = ['normal', 'optc', 'hpc']
config.run_ways		     = ['normal', 'optc', 'hpc']
18

krc's avatar
krc committed
19 20 21
# ways that are not enabled by default, but can always be invoked explicitly
config.other_ways            = ['extcore','optextcore']

22 23 24 25 26
if (ghc_with_native_codegen == 1):
	config.compile_ways.append('optasm')
	config.run_ways.append('optasm')

if (ghc_with_profiling == 1):
27
	config.have_profiling = True
28 29
	config.compile_ways.append('profc')
	config.run_ways.append('profc')
30 31 32
	if (ghc_with_native_codegen == 1):
		config.compile_ways.append('profasm')
		config.run_ways.append('profasm')
33 34 35 36

if (ghc_with_unreg == 1):
	config.compile_ways.append('unreg')
	config.run_ways.append('unreg')
37

38 39 40
if (ghc_with_interpreter == 1):
	config.run_ways.append('ghci')

41
if (ghc_with_threaded_rts == 1):
42
	config.run_ways.append('threaded1')
43 44
	if (ghc_with_smp == 1):
		config.run_ways.append('threaded2')
45

46 47
config.way_flags = {
	'normal'     : [],
48
	'optc'       : ['-O -fvia-C'],
49
	'optasm'     : ['-O -fasm'],
50
	'profc'      : ['-O -prof -auto-all -fvia-C'],
51 52 53 54 55
	'profasm'    : ['-O -prof -auto-all -fasm'],
	'unreg'      : ['-unreg'],
	'ghci'       : ['--interactive', '-v0'],
	'extcore'    : ['-fext-core'],
	'optextcore' : ['-O -fext-core'],
56
	'threaded1'  : ['-threaded', '-debug'],
andy@galois.com's avatar
andy@galois.com committed
57 58
	'threaded2'  : ['-O', '-threaded'],
	'hpc'	     : ['-O', '-fhpc' ]
59 60 61 62
	}

config.way_rts_flags = { 
	'normal'     : [],
63
	'optc'       : [],
64
	'optasm'     : [],
65
	'profc'      : ['-p'],
66
	'profasm'    : ['-hc'], # test heap profiling too
67 68 69 70
	'unreg'      : [],
	'ghci'       : [],
	'extcore'    : [],
	'optextcore' : [],
71
	'threaded1'  : [],
andy@galois.com's avatar
andy@galois.com committed
72 73
	'threaded2'  : ['-N2'],
	'hpc'	     : []
74
    	}
75