ghc-9.6.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Linker.ExtraObj

Synopsis

- mkExtraObj :: Logger -> TmpFs -> DynFlags -> UnitState -> Suffix -> String -> IO FilePath
- mkExtraObjToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitState -> IO (Maybe FilePath)
- mkNoteObjsToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitEnv -> [UnitId] -> IO [FilePath]
- checkLinkInfo :: Logger -> DynFlags -> UnitEnv -> [UnitId] -> FilePath -> IO Bool
- getLinkInfo :: DynFlags -> UnitEnv -> [UnitId] -> IO String
- getCompilerInfo :: Logger -> DynFlags -> IO CompilerInfo
- ghcLinkInfoSectionName :: String
- ghcLinkInfoNoteName :: String
- platformSupportsSavingLinkOpts :: OS -> Bool
- haveRtsOptsFlags :: DynFlags -> Bool

# Documentation

mkExtraObj :: Logger -> TmpFs -> DynFlags -> UnitState -> Suffix -> String -> IO FilePath Source #

mkExtraObjToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitState -> IO (Maybe FilePath) Source #

mkNoteObjsToLinkIntoBinary :: Logger -> TmpFs -> DynFlags -> UnitEnv -> [UnitId] -> IO [FilePath] Source #

checkLinkInfo :: Logger -> DynFlags -> UnitEnv -> [UnitId] -> FilePath -> IO Bool Source #

getLinkInfo :: DynFlags -> UnitEnv -> [UnitId] -> IO String Source #

Return the "link info" string

See Note [LinkInfo section]

getCompilerInfo :: Logger -> DynFlags -> IO CompilerInfo Source #

Grab compiler info and cache it in DynFlags.

ghcLinkInfoSectionName :: String Source #

ghcLinkInfoNoteName :: String Source #

platformSupportsSavingLinkOpts :: OS -> Bool Source #

haveRtsOptsFlags :: DynFlags -> Bool Source #