Commit c631662a authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test for trac #1322 (ghc --make recompiles hs-boot files unnecessarily)

parent ac121a7a
include $(TOP)/mk/
include $(TOP)/mk/
# Recompilation tests
@rm -f *.o*
@rm -f *.hi*
# Only the first invocation should print any "Compiling" messages
recomp002: clean
@$(TEST_HC) --make Q.hs
@echo Middle >&2
@$(TEST_HC) --make Q.hs
module Q where
import {-# SOURCE #-} W
test('recomp002', skip_if_fast, run_command, ['$MAKE -s --no-print-directory recomp002'])
if default_testopts.cleanup != '':
runCmd('$MAKE -C ' + in_testdir('') + ' clean')
[1 of 3] Compiling W[boot] ( W.hs-boot, W.o-boot )
[2 of 3] Compiling Q ( Q.hs, Q.o )
[3 of 3] Compiling W ( W.hs, W.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