This is an archive of the discontinued LLVM Phabricator instance.

[flang][cmake] Add a custom target for the "flang" wrapper script.
ClosedPublic

Authored by ygribov on Jan 20 2022, 2:52 AM.

Diff Detail

Event Timeline

ygribov created this revision.Jan 20 2022, 2:52 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: mgorny. · View Herald Transcript
ygribov requested review of this revision.Jan 20 2022, 2:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2022, 2:52 AM

I realize that the wrapper may be removed in few months so let me know if this is irrelevant.

Hi @ygribov, thank you for this patch!

I think that it would make sense to update the summary of this change to e.g. [flang][cmake] Add a custom target for the "flang" wrapper script. This would more accurately reflect what this patch implements. Instead, the current description focuses on the side effects, i.e. that the script will be re-copied into the build dir whenever {ninja|make} flang-wrapper is run. Unless I misunderstood?

Thanks!

flang/tools/f18/CMakeLists.txt
52

I think that it's a bit confusing if the name of the target and the generated tool are different.

ygribov updated this revision to Diff 402892.Jan 25 2022, 6:46 AM
ygribov retitled this revision from [flang] Update flang wrapper on change. to [flang][cmake] Add a custom target for the "flang" wrapper script..

Resolve review comments.

ygribov marked an inline comment as done.Jan 25 2022, 6:51 AM
awarzynski accepted this revision.Jan 25 2022, 11:13 AM

LGTM, thank you!

This revision is now accepted and ready to land.Jan 25 2022, 11:13 AM
This revision was landed with ongoing or failed builds.Jan 26 2022, 12:36 AM
This revision was automatically updated to reflect the committed changes.