From df3e5b744db29c085f5bc05f8b609197bcbf9b0c Mon Sep 17 00:00:00 2001
From: David Eichmann <EichmannD@gmail.com>
Date: Thu, 27 Jun 2019 11:11:28 +0100
Subject: [PATCH] Hadrian: disable cloud build cache for symlinks #16800

This is a temporary workaround shake not supporting symlinks
when using cloud/cached builds.
---
 hadrian/src/Hadrian/Utilities.hs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hadrian/src/Hadrian/Utilities.hs b/hadrian/src/Hadrian/Utilities.hs
index c934fa259d6..4a4061157b5 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
-- 
GitLab