[project @ 2001-08-21 16:04:43 by simonmar]
authorsimonmar <unknown>
Tue, 21 Aug 2001 16:04:43 +0000 (16:04 +0000)
committersimonmar <unknown>
Tue, 21 Aug 2001 16:04:43 +0000 (16:04 +0000)
Oops, I bungled the -no-recomp fix.  This probably had something to do
with the fact that -no-recomp is perhaps the worst-named option in the
history of compilers, and the internal variable used to store the
value of -no-recomp actually stores (not -no-recomp), perhaps in an
attempt to reverse the confusion generated by the obsurely named
option.  In the end I figured I had a 50/50 chance of getting it
right...

ghc/compiler/main/DriverPipeline.hs

index 68c57e4..8529d4e 100644 (file)
@@ -1054,7 +1054,7 @@ compile ghci_mode summary source_unchanged have_object
 
    -- -no-recomp should also work with --make
    do_recomp <- readIORef v_Recomp
-   let source_unchanged' = source_unchanged && not do_recomp
+   let source_unchanged' = source_unchanged && do_recomp
 
    -- run the compiler
    hsc_result <- hscMain ghci_mode dyn_flags'