[clang] [clang][modules][deps]Remove -F option from test for clang-scan-deps (PR #141614)

Jamie Schmeiser via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 13:05:56 PDT 2025


jamieschmeiser wrote:

The correct way to enable support for -F is to specify `--target=<some darwin target>`, eg `--target=x86_64-apple-macos`.  According to https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html, -F is a darwin extension in g++ so it only makes sense for darwin in clang.  Currently, it is quietly accepted and ignored by most other targets.  Another way that -F can be safely used is when preprocessing only (-fsyntax-only -cc1) or when just checking the command line (-###)

So, if you wish to do more than just check preprocess or check options, you should specify a darwin target.

https://github.com/llvm/llvm-project/pull/141614


More information about the cfe-commits mailing list