module ToolSettings
  ( ToolSettings (..)
  ) where

import GhcPrelude

import CliOption
import Fingerprint

-- | Settings for other executables GHC calls.
--
-- Probably should futher split down by phase, or split between
-- platform-specific and platform-agnostic.
data ToolSettings = ToolSettings
  { ToolSettings -> Bool
toolSettings_ldSupportsCompactUnwind :: Bool
  , ToolSettings -> Bool
toolSettings_ldSupportsBuildId       :: Bool
  , ToolSettings -> Bool
toolSettings_ldSupportsFilelist      :: Bool
  , ToolSettings -> Bool
toolSettings_ldIsGnuLd               :: Bool
  , ToolSettings -> Bool
toolSettings_ccSupportsNoPie         :: Bool

  -- commands for particular phases
  , ToolSettings -> String
toolSettings_pgm_L       :: String
  , ToolSettings -> (String, [Option])
toolSettings_pgm_P       :: (String, [Option])
  , ToolSettings -> String
toolSettings_pgm_F       :: String
  , ToolSettings -> String
toolSettings_pgm_c       :: String
  , ToolSettings -> (String, [Option])
toolSettings_pgm_a       :: (String, [Option])
  , ToolSettings -> (String, [Option])
toolSettings_pgm_l       :: (String, [Option])
  , ToolSettings -> (String, [Option])
toolSettings_pgm_lm      :: (String, [Option])
  , ToolSettings -> (String, [Option])
toolSettings_pgm_dll     :: (String, [Option])
  , ToolSettings -> String
toolSettings_pgm_T       :: String
  , ToolSettings -> String
toolSettings_pgm_windres :: String
  , ToolSettings -> String
toolSettings_pgm_libtool :: String
  , ToolSettings -> String
toolSettings_pgm_ar      :: String
  , ToolSettings -> String
toolSettings_pgm_ranlib  :: String
  , -- | LLVM: opt llvm optimiser
    ToolSettings -> (String, [Option])
toolSettings_pgm_lo      :: (String, [Option])
  , -- | LLVM: llc static compiler
    ToolSettings -> (String, [Option])
toolSettings_pgm_lc      :: (String, [Option])
  , -- | LLVM: c compiler
    ToolSettings -> (String, [Option])
toolSettings_pgm_lcc     :: (String, [Option])
  , ToolSettings -> String
toolSettings_pgm_i       :: String

  -- options for particular phases
  , ToolSettings -> [String]
toolSettings_opt_L             :: [String]
  , ToolSettings -> [String]
toolSettings_opt_P             :: [String]
  , -- | cached Fingerprint of sOpt_P
    -- See Note [Repeated -optP hashing]
    ToolSettings -> Fingerprint
toolSettings_opt_P_fingerprint :: Fingerprint
  , ToolSettings -> [String]
toolSettings_opt_F             :: [String]
  , ToolSettings -> [String]
toolSettings_opt_c             :: [String]
  , ToolSettings -> [String]
toolSettings_opt_cxx           :: [String]
  , ToolSettings -> [String]
toolSettings_opt_a             :: [String]
  , ToolSettings -> [String]
toolSettings_opt_l             :: [String]
  , ToolSettings -> [String]
toolSettings_opt_lm            :: [String]
  , ToolSettings -> [String]
toolSettings_opt_windres       :: [String]
  , -- | LLVM: llvm optimiser
    ToolSettings -> [String]
toolSettings_opt_lo            :: [String]
  , -- | LLVM: llc static compiler
    ToolSettings -> [String]
toolSettings_opt_lc            :: [String]
  , -- | LLVM: c compiler
    ToolSettings -> [String]
toolSettings_opt_lcc           :: [String]
  , -- | iserv options
    ToolSettings -> [String]
toolSettings_opt_i             :: [String]

  , ToolSettings -> [String]
toolSettings_extraGccViaCFlags :: [String]
  }