summaryrefslogtreecommitdiff
path: root/utils/mkUserGuidePart/Options/CodeGen.hs
blob: 9939d9e100d5e9dbe020de579e8c474a313df67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module Options.CodeGen where

import Types

codegenOptions :: [Flag]
codegenOptions =
  [ flag { flagName = "-fasm"
         , flagDescription =
           "Use the :ref:`native code generator <native-code-gen>`"
         , flagType = DynamicFlag
         , flagReverse = "-fllvm"
         }
  , flag { flagName = "-fllvm"
         , flagDescription =
           "Compile using the :ref:`LLVM code generator <llvm-code-gen>`"
         , flagType = DynamicFlag
         , flagReverse = "-fasm"
         }
  , flag { flagName = "-fno-code"
         , flagDescription = "Omit code generation"
         , flagType = DynamicFlag
         }
  , flag { flagName = "-fwrite-interface"
         , flagDescription = "Always write interface files"
         , flagType = DynamicFlag
         }
  , flag { flagName = "-fbyte-code"
         , flagDescription = "Generate byte-code"
         , flagType = DynamicFlag
         }
  , flag { flagName = "-fobject-code"
         , flagDescription = "Generate object code"
         , flagType = DynamicFlag
         }
  , flag { flagName = "-g⟨n⟩"
         , flagDescription =
           "Produce DWARF debug information in compiled object files." ++
           "⟨n⟩ can be 0, 1, or 2, with higher numbers producing richer " ++
           "output. If ⟨n⟩ is omitted level 2 is assumed."
         , flagType = DynamicFlag
         }
  ]