This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Add support for `--version` in the bash wrapper
ClosedPublic

Authored by awarzynski on Jul 2 2021, 8:06 AM.

Details

Summary

The bash wrapper script, flang, calls flang-new -fc1 under the hood,
which does not support --version (this is consistent with `clang -cc1
--version`). This change is needed for flang --version to work as
expected.

Note that flang --version (the Flang bash wrapper script for the
compiler driver) gives rather minimal output compared to `flang-new
--version` (the Flang compiler driver). As the wrapper script is just a
temporary solution for us, this should be sufficient.

Diff Detail

Event Timeline

awarzynski created this revision.Jul 2 2021, 8:06 AM
awarzynski requested review of this revision.Jul 2 2021, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2021, 8:06 AM
awarzynski added a project: Restricted Project.
This revision is now accepted and ready to land.Jul 2 2021, 8:14 AM