New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 46017 - flang does not provide --version option
Summary: flang does not provide --version option
Status: RESOLVED FIXED
Alias: None
Product: flang
Classification: Unclassified
Component: Driver (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-21 06:38 PDT by Satish Balay
Modified: 2020-09-03 03:07 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Satish Balay 2020-05-21 06:38:29 PDT
Please add --version option to flang. Currently it just hangs waiting for stdin

This breaks configure scripts that run compilers with --version option [all currently known compilers either provide the version info - or giver error message - not hang]

[balay@pj01 ~]$ clang --version
clang version 11.0.0 (https://github.com/llvm/llvm-project.git 5c3ebd77259d8438663a3abe334a80a7ddf5caef)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/balay/soft/llvm-dev/bin
[balay@pj01 ~]$ flang --version
<hang>
Comment 1 Steve Scalpone 2020-05-25 20:15:21 PDT
The flang shell script is the throwaway driver.  The new driver will behave more like clang.
Comment 2 Richard Barton 2020-09-03 03:07:48 PDT
Fixed by https://reviews.llvm.org/rGb11c52781635bd871abd6d932cfd5dcd6f311903 anyhow.