Skip to content
Snippets Groups Projects
Commit 6a0182dd authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Herbert Valerio Riedel
Browse files

Don't do a half-hearted recompilation check in compileOne


The isNothing maybe_old_linkable check predates
48bc81ad, which fixed #481 by requiring
recompilation information to be passed in as an argument to compileOne.
As a result, the check here is redundant: the client has already taken
a look at the object file to see if it is available or not.

Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>

(cherry picked from commit af4d9980)
parent 1f59f9a2
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ compileOne' m_tc_result mHscMessage ...@@ -171,7 +171,7 @@ compileOne' m_tc_result mHscMessage
-- -fforce-recomp should also work with --make -- -fforce-recomp should also work with --make
let force_recomp = gopt Opt_ForceRecomp dflags let force_recomp = gopt Opt_ForceRecomp dflags
source_modified source_modified
| force_recomp || isNothing maybe_old_linkable = SourceModified | force_recomp = SourceModified
| otherwise = source_modified0 | otherwise = source_modified0
object_filename = ml_obj_file location object_filename = ml_obj_file location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment