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 | |
Martin Vejdarski | beaaf47 | 2020-03-03 13:53:20 +0700 | [diff] [blame] | 8 | from __future__ import print_function |
| 9 | |
mtklein | f347c51 | 2016-09-26 08:40:12 -0700 | [diff] [blame] | 10 | import subprocess |
| 11 | import sys |
| 12 | cc,cxx = sys.argv[1:3] |
| 13 | |
Florin Malita | fa78f3b | 2020-06-26 13:57:23 -0400 | [diff] [blame] | 14 | if (b'clang' in subprocess.check_output('%s --version' % cc, shell=True) and |
| 15 | b'clang' in subprocess.check_output('%s --version' % cxx, shell=True)): |
Martin Vejdarski | beaaf47 | 2020-03-03 13:53:20 +0700 | [diff] [blame] | 16 | print('true') |
mtklein | f347c51 | 2016-09-26 08:40:12 -0700 | [diff] [blame] | 17 | else: |
Martin Vejdarski | beaaf47 | 2020-03-03 13:53:20 +0700 | [diff] [blame] | 18 | print('false') |