-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathcabal.project.release
44 lines (41 loc) · 1.03 KB
/
cabal.project.release
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
import: cabal.project.common
optimization: 2
-- The release project file always wants to build with -tar on the
-- platforms it supports (which are those it provides config.h files
-- for). The tar flag is only there to circumvent complicated errors
-- during development, which sometimes happens due to libarchive.
package ghcup
flags: +tui
if os(linux)
package ghcup
flags: +yaml-streamly
constraints: xz -system-xz
if arch(x86_64) || arch(i386)
flags: -tar
package *
ghc-options: -split-sections -optl-static
elif arch(arm)
flags: +tar
else
flags: -tar
elif os(darwin)
package ghcup
flags: +yaml-streamly
flags: -tar
constraints: zlib +bundled-c-zlib,
xz -system-xz
elif os(mingw32)
package ghcup
flags: +yaml-streamly
flags: -tar
constraints: xz -system-xz
elif os(freebsd)
flags: -tar
constraints: zlib +bundled-c-zlib,
zip +disable-zstd,
xz -system-xz
package *
ghc-options: -split-sections
else
package ghcup
flags: +tar