diff options
author | Pierre Gousseau <pierregousseau14@gmail.com> | 2016-09-06 10:48:27 +0000 |
---|---|---|
committer | Pierre Gousseau <pierregousseau14@gmail.com> | 2016-09-06 10:48:27 +0000 |
commit | 5e15bac435c04056a3f96c656aeb747e6f23b6ae (patch) | |
tree | 20462baa060785f099f2f043583ebc92fcd3c4f8 /tools/driver | |
parent | 794d70eb0ad8a4026c33ac63033b9cea3032bbb7 (diff) |
[clang-cl] Check that we are in clang cl mode before enabling support for the CL environment variable.
Checking for the type of the command line tokenizer should not be the criteria to enable support for the CL environment variable, this change checks that we are in clang-cl mode instead.
Differential Revision: https://reviews.llvm.org/D23503
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r-- | tools/driver/driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 9208ecdba0..6161302862 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -393,7 +393,7 @@ int main(int argc_, const char **argv_) { // Handle CL and _CL_ which permits additional command line options to be // prepended or appended. - if (Tokenizer == &llvm::cl::TokenizeWindowsCommandLine) { + if (ClangCLMode) { // Arguments in "CL" are prepended. llvm::Optional<std::string> OptCL = llvm::sys::Process::GetEnv("CL"); if (OptCL.hasValue()) { |