diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-07-19 20:33:20 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-07-19 20:33:20 +0000 |
commit | e4b031ca0393c4227201b8aa79c8635b45ab0b30 (patch) | |
tree | b9aa824164812fc4ee57ddedf50e0368e9a199b7 /clang/test | |
parent | 673d81b8c7b61c83f4d4f204c566d84d68d01ca7 (diff) | |
download | bcm5719-llvm-e4b031ca0393c4227201b8aa79c8635b45ab0b30.tar.gz bcm5719-llvm-e4b031ca0393c4227201b8aa79c8635b45ab0b30.zip |
Add a cl.exe compatible driver mode
The mode doesn't actually do anything yet, but this provides a
way to get into it.
llvm-svn: 186720
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/cl.c | 3 | ||||
-rw-r--r-- | clang/test/lit.cfg | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/Driver/cl.c b/clang/test/Driver/cl.c new file mode 100644 index 00000000000..c5273135e94 --- /dev/null +++ b/clang/test/Driver/cl.c @@ -0,0 +1,3 @@ +// RUN: %clang_cl -fsyntax-only -c %s + +void f(); diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 46fc5b50087..a5bb350f08d 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -204,7 +204,8 @@ config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s' getClangBuiltinIncludeDir(config.clang))) ) config.substitutions.append( ('%clang_cpp', ' ' + config.clang + ' --driver-mode=cpp ')) - +config.substitutions.append( ('%clang_cl', ' ' + config.clang + + ' --driver-mode=cl ')) config.substitutions.append( ('%clangxx', ' ' + config.clang + ' --driver-mode=g++ ')) config.substitutions.append( ('%clang', ' ' + config.clang + ' ') ) @@ -227,6 +228,9 @@ config.substitutions.append( config.substitutions.append( (' %clang-cpp ', """*** invalid substitution, use '%clang_cpp'. ***""") ) +config.substitutions.append( + (' %clang-cl ', + """*** invalid substitution, use '%clang_cl'. ***""") ) ### |