Moduleghc-toolchain-0.1.0.0Haskell2010
GHC.Toolchain.Target
- 3 types
- 2 values
- Packageghc-toolchain-0.1.0.0
- Exports5
- LanguageHaskell2010
- LicenceNONE
- SourceTarget.hs
Instances4Eq, Ord, Read, Show
Eq EndiannessDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetOrd EndiannessDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetRead EndiannessDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetShow EndiannessDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.Target
llc command
0 declarationsopt command
0 declarationsinstall_name_tool
0 declarationsotool command
3 declarationsA Target consists of:
a target architecture and operating system
various bits of information about the platform
various toolchain components targetting that platform
Constructors
TargettgtArchOs :: ArchOStgtVendor :: Maybe StringThis is the vendor component of the triple, the other two components are found in
tgtArchOstgtLocallyExecutable :: BooltgtSupportsGnuNonexecStack :: BooltgtSupportsSubsectionsViaSymbols :: BooltgtSupportsIdentDirective :: BooltgtWordSize :: WordSizetgtEndianness :: EndiannesstgtSymbolsHaveLeadingUnderscore :: BooltgtLlvmTarget :: StringtgtUnregisterised :: BooltgtTablesNextToCode :: BooltgtUseLibffiForAdjustors :: BoolWe need to know whether or not to include libffi headers, and generate additional code for it
tgtCCompiler :: CctgtCxxCompiler :: CxxtgtCPreprocessor :: CpptgtHsCPreprocessor :: HsCpptgtJsCPreprocessor :: Maybe JsCpptgtCmmCPreprocessor :: CmmCppWe set it only in javascript target
tgtCCompilerLink :: CcLinktgtAr :: ArtgtRanlib :: Maybe RanlibN.B. Most
arimplementations will add an index by default withoutranlibso this is often optionaltgtNm :: NmtgtMergeObjs :: Maybe MergeObjsWe don't need a merge objects tool if we
Arsupports-LtgtWindres :: Maybe Program
Instances4Eq, Ord, Read, Show
Eq TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetOrd TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetRead TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetShow TargetDefined in ghc-toolchain-0.1.0.0 · GHC.Toolchain.TargetHandwritten Show instance to have have better diffs against the toolchain targets generated by configure
The word size as an integer representing the number of bytes
Reconstruct the platform triple from a toolchain target (specifically from tgtArchOs and tgtVendor)