summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-01-15 10:45:02 -0500
committerHans Wennborg <hans@chromium.org>2020-01-16 12:54:53 +0100
commitc4a134a5107c1926262ee887057036ca53aa7265 (patch)
treea07d5a423b56a74c8435a2cb5757221d1905ec96 /clang/include
parent0b5157db53a3bd1988d27820491bbf02cd1a1278 (diff)
downloadbcm5719-llvm-c4a134a5107c1926262ee887057036ca53aa7265.tar.gz
bcm5719-llvm-c4a134a5107c1926262ee887057036ca53aa7265.zip
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)
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Driver/Options.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 1218172fd5b..abfa767afea 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -2855,6 +2855,14 @@ def fintegrated_as : Flag<["-"], "fintegrated-as">, Flags<[DriverOption]>,
def fno_integrated_as : Flag<["-"], "fno-integrated-as">,
Flags<[CC1Option, DriverOption]>, Group<f_Group>,
HelpText<"Disable the integrated assembler">;
+
+def fintegrated_cc1 : Flag<["-"], "fintegrated-cc1">,
+ Flags<[CoreOption, DriverOption]>, Group<f_Group>,
+ HelpText<"Run cc1 in-process">;
+def fno_integrated_cc1 : Flag<["-"], "fno-integrated-cc1">,
+ Flags<[CoreOption, DriverOption]>, Group<f_Group>,
+ HelpText<"Spawn a separate process for each cc1">;
+
def : Flag<["-"], "integrated-as">, Alias<fintegrated_as>, Flags<[DriverOption]>;
def : Flag<["-"], "no-integrated-as">, Alias<fno_integrated_as>,
Flags<[CC1Option, DriverOption]>;
OpenPOWER on IntegriCloud