Debian Codegraph @

gn/is_clang.py

raw
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 from __future__ import print_function
9
10 import subprocess
11 import sys
12 cc,cxx = sys.argv[1:3]
13
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)):
16 print('true')
17 else:
18 print('false')