[PATCH] D127408: [clang][driver] Introduce new -fdriver-only flag

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 08:39:36 PDT 2022


jansvoboda11 created this revision.
jansvoboda11 added reviewers: dexonsmith, egorzhdan.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

This patch introduces the new -fdriver-only flag which instructs Clang to only execute the driver logic without running individual jobs. In a way, this is very similar to -###, with the following differences:

- it doesn't automatically print all jobs,
- it doesn't avoid side effects (e.g. it will generate compilation database when -MJ is specified).

This flag will be useful in testing D121997 <https://reviews.llvm.org/D121997>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127408

Files:
  clang/include/clang/Driver/Compilation.h
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/Compilation.cpp
  clang/lib/Driver/Driver.cpp
  clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
  clang/test/Driver/cc-print-options.c
  clang/test/Driver/driver-only.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127408.435569.patch
Type: text/x-patch
Size: 6869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220609/3dcb4a8a/attachment.bin>


More information about the cfe-commits mailing list