Skip to content
Snippets Groups Projects

SystemTools: add a clonefile optimization on macOS

Merged Brad King requested to merge brad.king/kwsys:SystemTools-clonefile into master
All threads resolved!

Implement the copy file optimization on Darwin for copy_file and copy_file_if_different. Use the copyfile API on macOS 10.5 or newer to copy the file using APFS clone semantics. This is a best effort operation, but will fallback to copying without the cloning if necessary. The operation has been available since 10.5, making it old enough to assume present as the OS has been EOLed for years now.

Ported from cmake/cmake!7325 (closed).

Author: @compnerd

Merge request reports

Pipeline #284316 passed

Pipeline passed for 0969597d on brad.king:SystemTools-clonefile

Approval is optional

Merged by Kitware RobotKitware Robot 2 years ago (Jun 9, 2022 6:19pm UTC)

Merge details

  • Changes merged into master with 9b65e88d.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Brad King added 1 commit

    added 1 commit

    • 0969597d - SystemTools: add a clonefile optimization on macOS

    Compare with previous version

  • Brad King resolved all threads

    resolved all threads

  • Do: stage

  • Do: merge

  • merged

  • Brad King mentioned in commit 9b65e88d

    mentioned in commit 9b65e88d

  • Brad King mentioned in merge request cmake/cmake!7345 (merged)

    mentioned in merge request cmake/cmake!7345 (merged)

  • Brad King mentioned in merge request !281 (merged)

    mentioned in merge request !281 (merged)

  • Brad King mentioned in merge request !303 (merged)

    mentioned in merge request !303 (merged)

  • Please register or sign in to reply
    Loading