summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Packages/Compiler.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Settings/Packages/Compiler.hs')
-rw-r--r--hadrian/src/Settings/Packages/Compiler.hs45
1 files changed, 0 insertions, 45 deletions
diff --git a/hadrian/src/Settings/Packages/Compiler.hs b/hadrian/src/Settings/Packages/Compiler.hs
deleted file mode 100644
index 6b329d7b4f..0000000000
--- a/hadrian/src/Settings/Packages/Compiler.hs
+++ /dev/null
@@ -1,45 +0,0 @@
-module Settings.Packages.Compiler (compilerPackageArgs) where
-
-import Base
-import Expression
-import Flavour
-import Oracles.Flag
-import Oracles.Setting
-import Settings
-
-compilerPackageArgs :: Args
-compilerPackageArgs = package compiler ? do
- stage <- getStage
- rtsWays <- getRtsWays
- path <- getBuildPath
- mconcat [ builder Alex ? arg "--latin1"
-
- , builder (Ghc CompileHs) ? mconcat
- [ inputs ["//GHC.hs", "//GhcMake.hs"] ? arg "-fprof-auto"
- , input "//Parser.hs" ?
- pure ["-O0", "-fno-ignore-interface-pragmas", "-fcmm-sink" ] ]
-
- , builder GhcCabal ? mconcat
- [ arg $ "--ghc-option=-DSTAGE=" ++ show (fromEnum stage + 1)
- , arg "--disable-library-for-ghci"
- , anyTargetOs ["openbsd"] ? arg "--ld-options=-E"
- , flag GhcUnregisterised ? arg "--ghc-option=-DNO_REGS"
- , notM ghcWithSMP ? arg "--ghc-option=-DNOSMP"
- , notM ghcWithSMP ? arg "--ghc-option=-optc-DNOSMP"
- , (threaded `elem` rtsWays) ?
- notStage0 ? arg "--ghc-option=-optc-DTHREADED_RTS"
- , ghcWithNativeCodeGen ? arg "--flags=ncg"
- , ghcWithInterpreter ?
- notStage0 ? arg "--flags=ghci"
- , crossCompiling ? arg "-f-terminfo"
- , ghcWithInterpreter ?
- ghcEnableTablesNextToCode ?
- notM (flag GhcUnregisterised) ?
- notStage0 ? arg "--ghc-option=-DGHCI_TABLES_NEXT_TO_CODE"
- , ghcWithInterpreter ?
- ghciWithDebugger <$> flavour ?
- notStage0 ? arg "--ghc-option=-DDEBUGGER"
- , ghcProfiled <$> flavour ?
- notStage0 ? arg "--ghc-pkg-option=--force" ]
-
- , builder (Haddock BuildPackage) ? arg ("--optghc=-I" ++ path) ]