summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadrian/src/Hadrian/Utilities.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Hadrian/Utilities.hs b/hadrian/src/Hadrian/Utilities.hs
index c934fa259d..4a4061157b 100644
--- a/hadrian/src/Hadrian/Utilities.hs
+++ b/hadrian/src/Hadrian/Utilities.hs
@@ -305,6 +305,10 @@ isGeneratedSource file = buildRoot <&> (`isPrefixOf` file)
-- missing.
createFileLink :: FilePath -> FilePath -> Action ()
createFileLink linkTarget link = do
+ -- TODO `disableHistory` is a temporary fix (see issue #16866). Remove
+ -- `disableHistory` when shake issue is fixed: https://github.com/ndmitchell/shake/issues/683.
+ historyDisable
+
let source = if isAbsolute linkTarget
then linkTarget
else takeDirectory link -/- linkTarget