Skip to content

Commit e302950

Browse files
[flang] Handle -S assemble only flag in flang-to-external-fc (#78979)
Flang was recently updated on Compiler Explorer and by default it's in assemble only mode, you have to enable linking and executing. This means that the default output for flang-to-external-fc is nothing, as it doesn't know what `-S` means. You'd have to know to enable the link to binary option to see any output. Handle `-S` so that users of Compiler Explorer don't have to wonder why the "compiler" is broken.
1 parent 160ddf7 commit e302950

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/tools/f18/flang-to-external-fc.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ parse_args()
108108
COMPILE_ONLY="True"
109109
fi
110110

111+
if [[ $1 == "-S" ]]; then
112+
COMPILE_ONLY="True"
113+
fi
114+
111115
if [[ $1 == "-E" ]]; then
112116
PREPROCESS_ONLY="True"
113117
fi

0 commit comments

Comments
 (0)