This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][Utils] Make nfc-check-setup compatible with ninja
Changes PlannedPublic

Authored by Amir on Jul 19 2023, 9:50 PM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Summary

Preserve llvm-bolt timestamps to trick Ninja into not rebuilding the binary
after it has been replaced by a symlink.
This makes it possible to use the script and then run ninja check-bolt as
usual, instead of resorting to llvm-lit invocation.

Test Plan:

nfc-check-setup.py
ninja check-bolt
ls -l bin/llvm-bolt # still a symlink

Diff Detail

Event Timeline

Amir created this revision.Jul 19 2023, 9:50 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Jul 19 2023, 9:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 9:50 PM
Amir planned changes to this revision.Jul 19 2023, 10:05 PM

Huh, it didn't work. Checked too early before llvm-bolt was replaced as a dependency of check-bolt target.