-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcabal.project.ghc-debug
38 lines (32 loc) · 1.19 KB
/
cabal.project.ghc-debug
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
-- Cabal project configuration file for DEBUGGING
--
-- Use this configuration in one of two ways:
-- * pass `--project-file=cabal.project.ghc-debug` to Cabal
-- * run Vehicle via `./scripts/vehicle-ghc-debug`
import: cabal.project
package vehicle-syntax
flags:
-- Necessary for Vehicle.Syntax.Debug to reexport ghc-debug-stub
+ghc-debug
package vehicle
flags:
-- Necessary for Vehicle.Debug to reexport ghc-debug-stub,
-- and for vehicle:exe:vehicle to be a GHC debuggee
+ghc-debug
ghc-options:
-- Necessary for vehicle:exe:vehicle to support info table profiling,
-- which is used by scripts/vehicle-profile if HEAP_PROFILE_TYPE=-hi
-finfo-table-map -fdistinct-constructor-tables
-- 03-04-2023:
-- Eventlog was deprecated in GHC 9.4.
-- https://downloads.haskell.org/ghc/latest/docs/users_guide/phases.html#ghc-flag--eventlog
if impl(ghc < 9.4)
package vehicle
ghc-options:
-- Necessary for vehicle:exe:vehicle to support creating an eventlog,
-- which is used by scripts/vehicle-profile
-eventlog
-- 03-04-2023:
-- The package ghc-debug-stub has not yet been updated for GHC 9.4.8.
if impl(ghc >= 9.4)
allow-newer: ghc-debug-stub-0.4.0.0:ghc-prim