[PATCH] D69825: [Clang][Driver] Re-use the calling process instead of creating a new process for the cc1 invocation

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 9 07:57:04 PST 2019


aganea updated this revision to Diff 232861.
aganea marked 4 inline comments as done.
aganea added a comment.
Herald added a subscriber: mgorny.
Herald added a reviewer: jdoerfert.

Addressed all comments.
Added `CLANG_SPAWN_CC1` cmake flag & environment variable to control whether we want a cc1 process or not. It is disabled by default. I left out the `if (APPLE)` part in cmake, as suggested by @rnk.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69825/new/

https://reviews.llvm.org/D69825

Files:
  clang/CMakeLists.txt
  clang/include/clang/Config/config.h.cmake
  clang/include/clang/Driver/Driver.h
  clang/include/clang/Driver/Job.h
  clang/lib/Driver/Job.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/CMakeLists.txt
  clang/test/Driver/crash-diagnostics-dir.c
  clang/test/Driver/cuda-simple.cu
  clang/test/Driver/offloading-interoperability.c
  clang/test/Driver/option-aliases.c
  clang/test/Driver/unknown-arg.c
  clang/tools/driver/driver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69825.232861.patch
Type: text/x-patch
Size: 16589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191209/acd638f7/attachment-0001.bin>


More information about the cfe-commits mailing list