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

fix TH_spliceE5_prof

parent 67d50a42
......@@ -8,4 +8,12 @@ T2386:
$(TEST_HC) -v0 -c T2386_Lib.hs -fforce-recomp
$(TEST_HC) -v0 -c T2386.hs -fforce-recomp
\ No newline at end of file
HC_OPTS = -XTemplateHaskell -package template-haskell
@$(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',
extra_clean(['TH_spliceE5_Lib.hi', 'TH_spliceE5_Lib.o']),
['TH_spliceE5.hs', '-v0'])
# 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
# profiling (-osuf p_o) because this is necessary when mixing
# 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.
extra_clean(['TH_spliceE5_prof_Lib.p_o', 'TH_spliceE5_prof_Lib.hi',
['TH_spliceE5_prof.hs', '-v0 -prof -auto-all -osuf p_o'])
['$MAKE -s --no-print-directory TH_spliceE5_prof'])
extra_clean(['TH_spliceD1_Lib.hi', 'TH_spliceD1_Lib.o']),
Supports Markdown
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