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 | 209b6e2e78d3817e797386c92f234d380d92918d (patch) | |
tree | 99708b70a349281aeb01b2335b9f1923e641b3d9 /clang/test/Driver/cl-options.c | |
parent | 80c047d2c4dd0c1114624cec2a1a196427e463dd (diff) | |
download | bcm5719-llvm-209b6e2e78d3817e797386c92f234d380d92918d.tar.gz bcm5719-llvm-209b6e2e78d3817e797386c92f234d380d92918d.zip |
[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
llvm-svn: 280702
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index e5e540207cf..9b06963eb73 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -493,6 +493,8 @@ // RUN: env CL="/Gy" _CL_="/Gy- -- %s" %clang_cl -### 2>&1 | FileCheck -check-prefix=ENV-_CL_ %s // ENV-_CL_-NOT: "-ffunction-sections" +// RUN: env CL="%s" _CL_="%s" not %clang --rsp-quoting=windows -c + // Accept "core" clang options. // (/Zs is for syntax-only, -Werror makes it fail hard on unknown options) // RUN: %clang_cl \ |