Commit 7883b142 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Use -fforce-recomp rather than -no-recomp

parent 73c168c7
......@@ -8,7 +8,7 @@ import re
config.compiler_type = 'ghc'
config.compiler = 'ghc'
config.compiler_always_flags = ['-no-recomp', '-dcore-lint', '-dcmm-lint']
config.compiler_always_flags = ['-fforce-recomp', '-dcore-lint', '-dcmm-lint']
config.hp2ps = 'hp2ps' = 'gs'
......@@ -25,13 +25,13 @@ main
-- compile D & reload
:shell $HC $HC_OPTS -no-recomp -c D.hs
:shell $HC $HC_OPTS -fforce-recomp -c D.hs
-- change D, recompile & reload
:shell cp D2.hs D.hs
:shell $HC $HC_OPTS -no-recomp -c D.hs
:shell $HC $HC_OPTS -fforce-recomp -c D.hs
:load A
......@@ -16,12 +16,12 @@ include $(TOP)/mk/
# using the supplied Cabal configuration.
$(TEST_HC) --make -package-name test-1.0 B.C -no-recomp -v0
$(TEST_HC) --make -package-name test-1.0 B.C -fforce-recomp -v0
sed "s@__IMPORT__@`$(TOP)/utils/pwd quadruple-backslash`@" < >pkg.conf
$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp A.hs -i
$(TEST_HC) -c -package-conf pkg.conf -package test -fforce-recomp A.hs -i
# The -i clears the search path, so A.hs will find B.C from package test
-$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp Main.hs
-$(TEST_HC) -c -package-conf pkg.conf -package test -fforce-recomp Main.hs
# No -i when compiling Main, so a from-scratch search would find a home-pkg module B.C
# However, A.hi remembers that B.C came from package test, so all is ok.
......@@ -3,7 +3,7 @@ include $(TOP)/mk/
include $(TOP)/mk/
2014 :
$(TEST_HC) -no-recomp -c A.hs-boot
$(TEST_HC) -no-recomp -c A.hs
$(TEST_HC) -no-recomp -c B.hs
$(TEST_HC) -no-recomp -c C.hs
$(TEST_HC) -fforce-recomp -c A.hs-boot
$(TEST_HC) -fforce-recomp -c A.hs
$(TEST_HC) -fforce-recomp -c B.hs
$(TEST_HC) -fforce-recomp -c C.hs
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