[PATCH] D95460: [flang][driver] Add forced form flags and -ffixed-line-length
Joachim Protze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 17 13:44:12 PDT 2021
protze.joachim added a comment.
Before this patch, clang would happily ignore a `-ffree-form` flag. With this patch, none of `-Wno-error=unknown-argument`, `-Wno-unknown-argument` , `-Qunused-arguments` help to avoid clang from exiting with
error: unknown argument: '-ffree-form'
Why can't clang ignore these flags as any other unknown flags?
As a background: in the build system I'm dealing with, I cannot avoid that fortran flags are passed to the linking command. As C++ and fortran is involved, I prefer using clang++ as the linking command and explicitly link the fortran runtime library (at the moment gfortran, but in the future probably the flang runtime library)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95460/new/
https://reviews.llvm.org/D95460
More information about the cfe-commits
mailing list