[Git][ghc/ghc][wip/torsten.schmits/persistent-worker-test-2024-09-10] be less eager to skip creating stub dirs

Torsten Schmits (@torsten.schmits) gitlab at gitlab.haskell.org
Wed Sep 18 16:38:06 UTC 2024



Torsten Schmits pushed to branch wip/torsten.schmits/persistent-worker-test-2024-09-10 at Glasgow Haskell Compiler / GHC


Commits:
de4e6137 by Torsten Schmits at 2024-09-18T18:37:57+02:00
be less eager to skip creating stub dirs

- - - - -


1 changed file:

- compiler/GHC/Driver/CodeOutput.hs


Changes:

=====================================
compiler/GHC/Driver/CodeOutput.hs
=====================================
@@ -296,10 +296,9 @@ outputForeignStubs logger tmpfs dflags unit_state mod location stubs
               | platformMisc_libFFI $ platformMisc dflags = "#include \"rts/ghc_ffi.h\"\n"
               | otherwise = ""
 
-        stub_h_file_exists <-
-          if null stub_h_output_w
-          then pure False
-          else do
+        stub_h_file_exists <- case ml_hs_file_ospath location of
+          Nothing -> pure False
+          Just _ -> do
             -- The header path is computed from the module source path, which
             -- does not exist when loading interface core bindings for Template
             -- Haskell.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/de4e6137133d3fd12d88eb7bf527e18d43ba3c45

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/de4e6137133d3fd12d88eb7bf527e18d43ba3c45
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240918/5cc90c48/attachment.html>


More information about the ghc-commits mailing list