GHC.Toolchain.Tools.Link

ghc-toolchain-0.1.0.0: Utility for managing GHC target toolchains

Safe Haskell | None
Language | Haskell2010

GHC.Toolchain.Tools.Link

Synopsis

- data CcLink = CcLink {
  - ccLinkProgram :: Program
  - ccLinkSupportsNoPie :: Bool
  - ccLinkSupportsCompactUnwind :: Bool
  - ccLinkSupportsFilelist :: Bool
  - ccLinkSupportsSingleModule :: Bool
  - ccLinkIsGnu :: Bool
  }
- findCcLink :: String -> ProgOpt -> ProgOpt -> Bool -> ArchOS -> Cc -> Maybe Readelf -> M CcLink

# Documentation

data CcLink Source #

Configuration on how the C compiler can be used to link

Constructors

CcLink |
Fields ccLinkProgram :: Program ccLinkSupportsNoPie :: Bool ccLinkSupportsCompactUnwind :: Bool ccLinkSupportsFilelist :: Bool ccLinkSupportsSingleModule :: Bool ccLinkIsGnu :: Bool

#### Instances

Instances details

Eq CcLink Source # |
Instance details Defined in GHC.Toolchain.Tools.Link Methods (==) :: CcLink -> CcLink -> Bool # (/=) :: CcLink -> CcLink -> Bool #
Ord CcLink Source # |
Instance details Defined in GHC.Toolchain.Tools.Link Methods compare :: CcLink -> CcLink -> Ordering # (<) :: CcLink -> CcLink -> Bool # (<=) :: CcLink -> CcLink -> Bool # (>) :: CcLink -> CcLink -> Bool # (>=) :: CcLink -> CcLink -> Bool # max :: CcLink -> CcLink -> CcLink # min :: CcLink -> CcLink -> CcLink #
Read CcLink Source # |
Instance details Defined in GHC.Toolchain.Tools.Link Methods readsPrec :: Int -> ReadS CcLink # readList :: ReadS [CcLink] # readPrec :: ReadPrec CcLink # readListPrec :: ReadPrec [CcLink] #
Show CcLink Source # |
Instance details Defined in GHC.Toolchain.Tools.Link Methods showsPrec :: Int -> CcLink -> ShowS # show :: CcLink -> String # showList :: [CcLink] -> ShowS #

findCcLink Source #

Arguments

:: String | The llvm target to use if CcLink supports --target
-> ProgOpt |
-> ProgOpt |
-> Bool | Whether we should search for a more efficient linker
-> ArchOS |
-> Cc |
-> Maybe Readelf |
-> M CcLink |