[all-commits] [llvm/llvm-project] c4a134: Replace CLANG_SPAWN_CC1 env var with a driver mode...

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Jan 16 04:03:19 PST 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: c4a134a5107c1926262ee887057036ca53aa7265
      https://github.com/llvm/llvm-project/commit/c4a134a5107c1926262ee887057036ca53aa7265
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-01-16 (Thu, 16 Jan 2020)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/cc1-spawnprocess.c
    M clang/tools/driver/driver.cpp

  Log Message:
  -----------
  Replace CLANG_SPAWN_CC1 env var with a driver mode flag

Flags are clang's default UI is flags.

We can have an env var in addition to that, but in D69825 nobody has yet
mentioned why this needs an env var, so omit it for now.  If someone
needs to set the flag via env var, the existing CCC_OVERRIDE_OPTIONS
mechanism works for it (set CCC_OVERRIDE_OPTIONS=+-fno-integrated-cc1
for example).

Also mention the cc1-in-process change in the release notes.

Also spruce up the test a bit so it actually tests something :)

Differential Revision: https://reviews.llvm.org/D72769

(cherry picked from commit 8e5018e990b701391e6c33ba85b012343df67272)




More information about the All-commits mailing list