commit | 8fa01c8f98ff7c8f40fee5014c9c393d806381a4 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Tue Nov 10 18:47:41 2009 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Tue Nov 10 18:47:41 2009 +0000 |
tree | 76f0305a67690d98e30faac0c4eb1e04818382d0 | |
parent | fcb0c3b39b2bf3390ea21749b4a1a8946aa927ed [diff] |
Driver: Run 'clang' in C++ mode based on the name it was invoked by. We match anything that ends with ++ or ++-FOO (e.g., c++, clang++, clang++-1.1) as being a "C++ compiler". This allows easy testing of the C++ compiler by 'ln -s clang clang++', or by 'cp clang clang++'. Based on patch by Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86697 91177308-0d34-0410-b5e6-96231b3b80d8