GHC.Linker.External

ghc-9.10.0.20240328: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Linker.External

Description

External ("system") linker

Synopsis

- data LinkerConfig = LinkerConfig {
  - linkerProgram :: String
  - linkerOptionsPre :: [Option]
  - linkerOptionsPost :: [Option]
  - linkerTempDir :: TempDir
  - linkerFilter :: String -> String
  }
- runLink :: Logger -> TmpFs -> LinkerConfig -> [Option] -> IO ()

# Documentation

data LinkerConfig Source #

External linker configuration

Constructors

LinkerConfig |
Fields linkerProgram :: String Linker program linkerOptionsPre :: [Option] Linker options (before user options) linkerOptionsPost :: [Option] Linker options (after user options) linkerTempDir :: TempDir Temporary directory to use linkerFilter :: String -> String Output filter

runLink :: Logger -> TmpFs -> LinkerConfig -> [Option] -> IO () Source #

Run the external linker