Skip to content

merge queue: merged #12557: Warn when -fprof-late is used with the default profiling detail - #12703

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/45419426b4
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/45419426b4

Conversation

@mergify

@mergify mergify Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Its pull request has merged, and nobody needs to act on it.
Mergify opened it for batch genial-axoa-doabx8 of the squash-merge queue, to test #12557 before it merged into master.

🎉 What landed

Mergify merged its pull request into master, then closed this draft:

  • #12557 Warn when -fprof-late is used with the default profiling detail (swinilohani616-dot), as 4588fff

This draft's code was built in this order:

  1. master at 35605a5
  2. #12557, the pull request of this batch
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 35605a5f0707eb40680d73b7fd207db6a9f0aa64
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 12557
    scopes: []
queue_base_sha: 35605a5f0707eb40680d73b7fd207db6a9f0aa64
scopes: []
...
Required conditions of queue rule squash-merge for merge
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • github-review-approved [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of [🛡 GitHub branch protection]:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of [🛡 GitHub branch protection]:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of [🛡 GitHub branch protection]:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of [🛡 GitHub branch protection]:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of [🛡 GitHub branch protection]:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of [🛡 GitHub branch protection]:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs
Required conditions to stay in the queue

swinilohani616-dot and others added 4 commits November 9, 2026 17:46
Passing -fprof-late as a GHC option while leaving the profiling detail
level at its default stacks the default cost centres on top of the late
ones, which adds overhead without giving a better profile. Cabal now
warns about this and suggests --profiling-detail=late instead.

The check runs in configureFinal so it covers both Setup configure and
cabal-install, and it looks at ghc-options from the command line,
cabal.project and the package's .cabal file.

Fixes #9052
cabal-install configures one component at a time, but the check looked
at the options of all the components of the package. So every component
warned when any of them set -fprof-late. Now it only looks at the
components being configured.

It also looks at ghc-prof-options now, which are used when profiling.
@mergify mergify Bot changed the title merge queue: checking #12557 on master (35605a5) merge queue: merged #12557: Warn when -fprof-late is used with the default profiling detail Dec 5, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/45419426b4 branch December 5, 2026 05:06
@mergify mergify Bot closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant