From 2440b88782e08f3411c7425d6fe496990d68ce9c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 14 Nov 2025 15:18:23 -0500 Subject: Clean up build output and add [+] for analyzing phase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove all label prefixes from build logs (bild:, nix:, etc) - Show [+] Namespace when first reserving a line (analyzing) - Show [~] Namespace: output when building with subprocess output - Show [✓] Namespace (green) on success - Show [x] Namespace (red) on failure --- Omni/Bild.hs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Omni/Bild.hs') diff --git a/Omni/Bild.hs b/Omni/Bild.hs index f84b08c..1bb42db 100755 --- a/Omni/Bild.hs +++ b/Omni/Bild.hs @@ -964,19 +964,15 @@ build andTest loud jobs cpus analysis = do result <- case compiler of CPython -> case out of Just _ -> - LogC.updateCurrentLine namespace "bild: nix: python" - >> nixBuild loud jobs cpus target + nixBuild loud jobs cpus target +> (\r -> (isSuccess (fst r) && andTest) ?: (test loud target, pure r)) Nothing -> - LogC.updateCurrentLine namespace "cannot build library" - >> pure (Exit.ExitSuccess, mempty) + pure (Exit.ExitSuccess, mempty) Gcc -> - LogC.updateCurrentLine namespace "bild: nix: gcc" - >> nixBuild loud jobs cpus target + nixBuild loud jobs cpus target Ghc -> case out of Nothing -> pure (Exit.ExitSuccess, mempty) Just _ -> do - LogC.updateCurrentLine namespace ("bild: nix: " <> user <> "@" <> host) result <- nixBuild loud jobs cpus target if andTest && (isSuccess <| fst result) then test loud target -- cgit v1.2.3