Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
9dadfbd7
Commit
9dadfbd7
authored
Feb 01, 2005
by
simonmar
Browse files
[project @ 2005-02-01 13:18:05 by simonmar]
Fix the source_unchanged test in the Hsc phase
parent
d7080606
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/DriverPipeline.hs
View file @
9dadfbd7
...
...
@@ -656,10 +656,10 @@ runPhase (Hsc src_flavour) stop dflags basename suff input_fn get_output_fn _may
-- date wrt M.hs (or M.o doesn't exist) so we must recompile regardless.
let
do_recomp
=
recompFlag
dflags
source_unchanged
<-
if
not
do_recomp
||
isStopLn
stop
if
not
do_recomp
||
not
(
isStopLn
stop
)
-- Set source_unchanged to False unconditionally if
-- (a) recompilation checker is off, or
-- (b) we aren't going all the way to .o file (e.g. ghc -S)
,
-- (b) we aren't going all the way to .o file (e.g. ghc -S)
then
return
False
-- Otherwise look at file modification dates
else
do
o_file_exists
<-
doesFileExist
o_file
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment