ghc 1.31 KB
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

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

18 19 20 21 22 23 24 25
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')

26 27 28
if (ghc_with_interpreter == 1):
	config.run_ways.append('ghci')

29 30 31 32 33 34 35 36 37 38 39 40
if (ghc_with_threaded_rts == 1):
	config.run_ways.append('threaded')

config.way_flags = { 'normal'     : [],
		     'opt'        : ['-O'],
		     'optasm'     : ['-O -fasm'],
	  	     'prof'       : ['-O -prof -auto-all'],
		     'unreg'      : ['-unreg'],
		     'ghci'       : ['--interactive', '-v0'],
                     'extcore'    : ['-fext-core'],
		     'optextcore' : ['-O -fext-core'],
		     'threaded'   : ['-threaded']
41
		   }
42