mtklein | f347c51 | 2016-09-26 08:40:12 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | # Copyright 2016 Google Inc. |
| 4 | # |
| 5 | # Use of this source code is governed by a BSD-style license that can be |
| 6 | # found in the LICENSE file. |
| 7 | |
| 8 | import subprocess |
| 9 | import sys |
| 10 | cc,cxx = sys.argv[1:3] |
| 11 | |
csmartdalton | 53c7bbf | 2016-09-27 09:29:24 -0700 | [diff] [blame] | 12 | if ('clang' in subprocess.check_output('%s --version' % cc, shell=True) and |
| 13 | 'clang' in subprocess.check_output('%s --version' % cxx, shell=True)): |
mtklein | f347c51 | 2016-09-26 08:40:12 -0700 | [diff] [blame] | 14 | print 'true' |
| 15 | else: |
| 16 | print 'false' |
| 17 | |