[flang][driver] deprecate manual usage of -lFortran_main (#79016)
commitd37d1c8deaa34216248ad51e549a701852e29fa3
authorTom Eccles <tom.eccles@arm.com>
Mon, 22 Jan 2024 23:14:09 +0000 (22 23:14 +0000)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 23:14:09 +0000 (22 23:14 +0000)
tree8aeb443d238fac06344d1be94b136b08c2d8495b
parentbe0c8098364b4bc9b210db65f5799bf37aefb605
[flang][driver] deprecate manual usage of -lFortran_main (#79016)

Intended to warn users of the 18.x release not to do this.

A better solution should be found for the 19.x release. See discussion
in https://github.com/llvm/llvm-project/pull/78152.

Unfortunately there is no warning on Windows currently. I am rushing to
get this landed before 18.x branches.
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains/CommonArgs.cpp
flang/test/Driver/linker-flags.f90