Commit 38cf4426 authored by Simon Marlow's avatar Simon Marlow

fix TH_spliceE5_prof

parent 67d50a42
...@@ -8,4 +8,12 @@ T2386: ...@@ -8,4 +8,12 @@ T2386:
$(TEST_HC) -v0 -c T2386_Lib.hs -fforce-recomp $(TEST_HC) -v0 -c T2386_Lib.hs -fforce-recomp
$(TEST_HC) -v0 -c T2386.hs -fforce-recomp $(TEST_HC) -v0 -c T2386.hs -fforce-recomp
\ No newline at end of file HC_OPTS = -XTemplateHaskell -package template-haskell
TH_spliceE5_prof::
@$(RM) TH_spliceE5_prof*.o TH_spliceE5_prof*.hi TH_spliceE5_prof*.p_o
@$(TEST_HC) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -c
@$(TEST_HC) $(HC_OPTS) --make -v0 TH_spliceE5_prof.hs -prof -auto-all -osuf p_o -o $@
@./$@
...@@ -24,18 +24,19 @@ test('TH_spliceE5', ...@@ -24,18 +24,19 @@ test('TH_spliceE5',
extra_clean(['TH_spliceE5_Lib.hi', 'TH_spliceE5_Lib.o']), extra_clean(['TH_spliceE5_Lib.hi', 'TH_spliceE5_Lib.o']),
multimod_compile_and_run, multimod_compile_and_run,
['TH_spliceE5.hs', '-v0']) ['TH_spliceE5.hs', '-v0'])
# Testing profiling with TH is a bit tricky; we've already disabled # Testing profiling with TH is a bit tricky; we've already disabled
# the prof way above, and also we want to add options specifically for # the prof way above, and also we want to add options specifically for
# profiling (-osuf p_o) because this is necessary when mixing # profiling (-osuf p_o) because this is necessary when mixing
# profiling w/ TH. Furthermore we must have built the program the # profiling w/ TH. Furthermore we must have built the program the
# normal way first, so this is a bit of a hack. # normal way first, which is why the work is done by a Makefile rule.
test('TH_spliceE5_prof', test('TH_spliceE5_prof',
[req_profiling, [req_profiling,
omit_ways(['ghci']), omit_ways(['ghci']),
extra_clean(['TH_spliceE5_prof_Lib.p_o', 'TH_spliceE5_prof_Lib.hi', extra_clean(['TH_spliceE5_prof_Lib.p_o', 'TH_spliceE5_prof_Lib.hi',
'TH_spliceE5_prof_Lib.o'])], 'TH_spliceE5_prof_Lib.o','TH_spliceE5_prof.p_o'])],
multimod_compile_and_run, run_command,
['TH_spliceE5_prof.hs', '-v0 -prof -auto-all -osuf p_o']) ['$MAKE -s --no-print-directory TH_spliceE5_prof'])
test('TH_spliceD1', test('TH_spliceD1',
extra_clean(['TH_spliceD1_Lib.hi', 'TH_spliceD1_Lib.o']), extra_clean(['TH_spliceD1_Lib.hi', 'TH_spliceD1_Lib.o']),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment