ghc-toolchain-0.1.0.0: Utility for managing GHC target toolchains
Safe HaskellNone
LanguageHaskell2010

GHC.Toolchain.Tools.Cc

Synopsis

Documentation

newtype Cc Source #

Constructors

Cc 

Fields

Instances

Instances details
Read Cc Source # 
Instance details

Defined in GHC.Toolchain.Tools.Cc

Show Cc Source # 
Instance details

Defined in GHC.Toolchain.Tools.Cc

Methods

showsPrec :: Int -> Cc -> ShowS #

show :: Cc -> String #

showList :: [Cc] -> ShowS #

Eq Cc Source # 
Instance details

Defined in GHC.Toolchain.Tools.Cc

Methods

(==) :: Cc -> Cc -> Bool #

(/=) :: Cc -> Cc -> Bool #

Ord Cc Source # 
Instance details

Defined in GHC.Toolchain.Tools.Cc

Methods

compare :: Cc -> Cc -> Ordering #

(<) :: Cc -> Cc -> Bool #

(<=) :: Cc -> Cc -> Bool #

(>) :: Cc -> Cc -> Bool #

(>=) :: Cc -> Cc -> Bool #

max :: Cc -> Cc -> Cc #

min :: Cc -> Cc -> Cc #

findCc Source #

Arguments

:: ArchOS 
-> String

The llvm target to use if Cc supports --target

-> ProgOpt 
-> M Cc 

Helpful utilities

preprocess Source #

Arguments

:: Cc 
-> String

program

-> M String

preprocessed output

Preprocess the given program.

compileC Source #

Arguments

:: Cc

cc

-> FilePath

output path

-> String

C source

-> M () 

Compile a C source file to object code.

compileAsm Source #

Arguments

:: Cc

cc

-> FilePath

output path

-> String

Assembler source

-> M () 

Compile an assembler source file to object code.

addPlatformDepCcFlags :: ArchOS -> Cc -> M Cc Source #

Add various platform-dependent compiler flags needed by GHC. We can't do this in findCc since we need a Cc to determine the ArchOS.