-- | Build GMP library objects and return their paths.
gmpObjects :: Action [FilePath]
gmpObjects = do
    gmpPath <- gmpBuildPath
    need [gmpPath -/- gmpLibraryH]
    -- The line below causes a Shake Lint failure on Windows, which forced us to
    -- disable Lint by default. See more details here:
    -- https://gitlab.haskell.org/ghc/ghc/issues/15971.
    map (unifyPath . (gmpPath -/-)) <$>
        liftIO (getDirectoryFilesIO gmpPath [gmpObjectsDir -/- "*.o"])
gmpObjects :: Action [FilePath]
gmpObjects = do
    gmpPath <- gmpBuildPath
    need [gmpPath -/- gmpLibraryH]
    -- The line below causes a Shake Lint failure on Windows, which forced us to
    -- disable Lint by default. See more details here:
    -- https://gitlab.haskell.org/ghc/ghc/issues/15971.
    map (unifyPath . (gmpPath -/-)) <$>
        liftIO (getDirectoryFilesIO gmpPath [gmpObjectsDir -/- "*.o"])
gmpObjects = do
    gmpPath <- gmpBuildPath
    need [gmpPath -/- gmpLibraryH]
    -- The line below causes a Shake Lint failure on Windows, which forced us to
    -- disable Lint by default. See more details here:
    -- https://gitlab.haskell.org/ghc/ghc/issues/15971.
    map (unifyPath . (gmpPath -/-)) <$>
        liftIO (getDirectoryFilesIO gmpPath [gmpObjectsDir -/- "*.o"])