-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 8e5018e)
- Loading branch information
Showing
5 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
// RUN: env CLANG_SPAWN_CC1= %clang -S %s -o /dev/null | ||
// RUN: env CLANG_SPAWN_CC1=0 %clang -S %s -o /dev/null | ||
// RUN: env CLANG_SPAWN_CC1=1 %clang -S %s -o /dev/null | ||
// RUN: env CLANG_SPAWN_CC1=test not %clang -S %s -o /dev/null | ||
// RUN: %clang -fintegrated-cc1 -### %s 2>&1 | FileCheck %s --check-prefix=YES | ||
// RUN: %clang -fno-integrated-cc1 -### %s 2>&1 | FileCheck %s --check-prefix=NO | ||
|
||
// RUN: %clang -fintegrated-cc1 -fno-integrated-cc1 -### %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=NO | ||
// RUN: %clang -fno-integrated-cc1 -fintegrated-cc1 -### %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=YES | ||
|
||
// RUN: %clang_cl -fintegrated-cc1 -### -- %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=YES | ||
// RUN: %clang_cl -fno-integrated-cc1 -### -- %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=NO | ||
|
||
// RUN: env CCC_OVERRIDE_OPTIONS=+-fintegrated-cc1 \ | ||
// RUN: %clang -fintegrated-cc1 -### %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=YES | ||
// RUN: env CCC_OVERRIDE_OPTIONS=+-fno-integrated-cc1 \ | ||
// RUN: %clang -fintegrated-cc1 -### %s 2>&1 \ | ||
// RUN: | FileCheck %s --check-prefix=NO | ||
|
||
// YES: (in-process) | ||
// NO-NOT: (in-process) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters