summaryrefslogtreecommitdiff
path: root/Omni/Bild.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Bild.hs')
-rw-r--r--Omni/Bild.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Bild.hs b/Omni/Bild.hs
index 39ac01f..b4da154 100644
--- a/Omni/Bild.hs
+++ b/Omni/Bild.hs
@@ -1432,7 +1432,7 @@ pipelineBuildOne andTest loud andCache jobs cpus target@Target {..} = do
Sbcl ->
proc loud namespace (toNixFlag compiler) compilerFlags
let exitCode = fst result
- when (andCache && isSuccess exitCode) <| do
+ when (andCache && isSuccess exitCode && isJust out) <| do
storePath <- Dir.canonicalizePath (nixdir </> outname out)
cacheStorePath loud namespace storePath
pure exitCode