summaryrefslogtreecommitdiff
path: root/compiler/main/DriverPipeline.hs
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2014-12-26 21:56:54 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2015-01-03 11:19:56 -0800
commitaf4d99803ea7676f88f250ad56a8c31c1c8cd5bc (patch)
treea3f4ff246098023ebf59520daa38781f532b6c4d /compiler/main/DriverPipeline.hs
parent633814f5664f135b3648e2a0a6f37e41e2b54ea0 (diff)
downloadhaskell-af4d99803ea7676f88f250ad56a8c31c1c8cd5bc.tar.gz
Don't do a half-hearted recompilation check in compileOne
Summary: The isNothing maybe_old_linkable check predates 48bc81ad466edfc80237015dbe5d78ba70eb5095, 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: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonmar, austin Subscribers: carter, thomie Differential Revision: https://phabricator.haskell.org/D594
Diffstat (limited to 'compiler/main/DriverPipeline.hs')
-rw-r--r--compiler/main/DriverPipeline.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index fdec73e1ce..e8be29759b 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -171,7 +171,7 @@ compileOne' m_tc_result mHscMessage
-- -fforce-recomp should also work with --make
let force_recomp = gopt Opt_ForceRecomp dflags
source_modified
- | force_recomp || isNothing maybe_old_linkable = SourceModified
+ | force_recomp = SourceModified
| otherwise = source_modified0
object_filename = ml_obj_file location