Skip to content
Snippets Groups Projects

hadrian: Always canonicalize topDirectory

Closed Ben Gamari requested to merge wip/T22451 into master
All threads resolved!

Hadrian's topDirectory is intended to provide an absolute path to the root of the GHC tree. However, if the tree is reached via a symlink this

One question here is whether the canonicalizePath call is expensive enough to warrant caching. In a quick microbenchmark I observed that canonicalizePath "." takes around 10us per call; this seems sufficiently low not to worry.

Alternatively, another approach here would have been to rather move the canonicalization into m4/fp_find_root.m4. This would have avoided repeated canonicalization but sadly path canonicalization is a hard problem in POSIX shell.

Addresses #22451 (closed).

Merge request reports

Approved by
Test summary results are being parsed

Closed by Marge BotMarge Bot 1 year ago (Jun 29, 2023 1:08am UTC)

Merge details

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Bryan R approved this merge request

    approved this merge request

  • Ben Gamari added 124 commits

    added 124 commits

    Compare with previous version

  • Ben Gamari resolved all threads

    resolved all threads

  • Ben Gamari approved this merge request

    approved this merge request

  • assigned to @marge-bot

  • I will attempt to batch this MR (!10751 (closed))...

  • closed

  • Author Maintainer

    Marking for backport to %9.8.1 and %9.6.3 due #23833.

  • Ryan Hendrickson mentioned in issue #23833

    mentioned in issue #23833

  • Ben Gamari mentioned in merge request !11116 (merged)

    mentioned in merge request !11116 (merged)

  • Author Maintainer

    Backported to %9.8.1 in !11116 (merged) .

  • Zubin mentioned in merge request !11203 (merged)

    mentioned in merge request !11203 (merged)

  • Backported to %9.6.3 in !11203 (merged)

  • Please register or sign in to reply
    Loading