blob: f6a6843afbd1788bcab100c38448bdf2dcec2249 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
:set -icompiler/backpack
:set -icompiler/basicTypes
:set -icompiler/cmm
:set -icompiler/codeGen
:set -icompiler/coreSyn
:set -icompiler/deSugar
:set -icompiler/ghci
:set -icompiler/hieFile
:set -icompiler/hsSyn
:set -icompiler/iface
:set -icompiler/llvmGen
:set -icompiler/main
:set -icompiler/nativeGen
:set -icompiler/parser
:set -icompiler/prelude
:set -icompiler/profiling
:set -icompiler/rename
:set -icompiler/simplCore
:set -icompiler/simplStg
:set -icompiler/specialise
:set -icompiler/stgSyn
:set -icompiler/stranal
:set -icompiler/typecheck
:set -icompiler/types
:set -icompiler/utils
:set -icompiler/vectorise
:set -ighc
:set -Icompiler
:set -Iincludes
:set -Iincludes/dist-derivedconstants/header
:set -package=ghc-boot-th
:set -DSTAGE=2
:set -DGHCI
:set -DGHC_LOADED_INTO_GHCI
:set -XNoImplicitPrelude
-- make it work for Make stage2
:set -Icompiler/stage2
:set -Icompiler/stage2/build
:set -icompiler/stage2/build
-- make it work for Make stage1
:set -Icompiler/stage1
:set -Icompiler/stage1/build
:set -icompiler/stage1/build
-- make it work for Hadrian stage2
:set -I_build/generated
:set -I_build/stage2/compiler/build
:set -i_build/stage2/compiler/build
-- make it work for Hadrian stage1
:set -I_build/stage1/compiler/build
:set -i_build/stage1/compiler/build
-- -fobject-code is required because bytecode doesn't support unboxed tuples
-- https://ghc.haskell.org/trac/ghc/ticket/1257
:set -odir ./.ghci-objects
:set -hidir ./.ghci-objects
:set -fobject-code
-- Setup args so that running "main" will run ghci and set the prompt to
-- indicate that it is an inner ghci.
:set args --interactive -ghci-script utils/ghc-in-ghci/inner.ghci
|