haskell / haskell/cabal

Confusing -O1 in build profile

Open
#6,221 30 comments 13 reactions 0 assignees View on GitHub
attention: pr-welcome newcomer newcomer: 1-one-line-change re: user experience type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

```
$ cabal build
Resolving dependencies...
Build profile: -w ghc-8.8.1 -O1
In order, the following will be built (use -v for more details):
- bsb-http-chunked-0.0.0.4 (lib) (first run)
```

What does the `-O1` in the `Build profile:` line mean? The `ghc-options` for my library component include `-O2`, and the verbose log shows that `ghc` is invoked with `-O2` too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.