This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][UTILS] Usability improvements for nfc-check-setup
ClosedPublic

Authored by Amir on Jun 2 2022, 8:15 PM.

Details

Summary
  1. Stash local changes before checkout.
  2. Print a message that the source repository revision has been changed, with instructions to switch back.
  3. Make the script executable.
  4. Print sample instructions how to run bolt tests.
  5. Assume that llvm-bolt-wrapper script is in the same source directory.

Diff Detail

Event Timeline

Amir created this revision.Jun 2 2022, 8:15 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
Amir requested review of this revision.Jun 2 2022, 8:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2022, 8:15 PM
Amir updated this revision to Diff 433942.Jun 2 2022, 8:20 PM

Stash changes before checkout

Amir edited the summary of this revision. (Show Details)Jun 2 2022, 8:21 PM
rafauler accepted this revision.Jun 3 2022, 2:52 PM

LGTM, thanks!

Btw, the stashed changes can't be recovered by any of the commands listed in your print statement, right? You would need to run git stash apply

This revision is now accepted and ready to land.Jun 3 2022, 2:52 PM
Amir added a comment.Jun 3 2022, 6:05 PM

LGTM, thanks!

Btw, the stashed changes can't be recovered by any of the commands listed in your print statement, right? You would need to run git stash apply

Right, I didn't provide commands to restore, assuming the user would know how to do that. I don't feel like making the script more complex for now, but if/when I forget what to do with the stash next time I use this script, I'll add that :)

This revision was automatically updated to reflect the committed changes.