llvm-project/flang/tools/f18
Andrzej Warzynski aa06f34dac [flang][driver] Fix output filename generation in `flang`
In the `flang` bash script, we need to be careful _when_ to use <output>
from `flang -c -o <output> <input>` when generating the relocatable
output file name.

In particular, we should use it in this case:
```compilation only
flang -c -o <output> <input>
```
but leave it for the final executable here:
```compile, assemble and link
flang  -o <output> <input>
```
This change is implemented in `get_relocatable_name`.

I've also taken the liberty to fix how errors from sub-commands are
reported (without this change, `flang` always returns `0` on failure).
This is implemented in `main`.

Differential Revision: https://reviews.llvm.org/D105896
2021-07-16 17:06:06 +01:00
..
CMakeLists.txt [flang][driver] Extend the `flang` bash script to act as a driver 2021-07-01 13:56:38 +01:00
dump.cpp [flang] Reformat with latest clang-format and .clang-format 2020-03-28 21:00:16 -07:00
f18.cpp [flang][driver] Extend the `flang` bash script to act as a driver 2021-07-01 13:56:38 +01:00
flang.in [flang][driver] Fix output filename generation in `flang` 2021-07-16 17:06:06 +01:00