blob: 4eddc5e75a3b7445cf58af6784c50690239afcb6 [file] [log] [blame]
mtkleinf347c512016-09-26 08:40:12 -07001#!/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 Vejdarskibeaaf472020-03-03 13:53:20 +07008from __future__ import print_function
9
mtkleinf347c512016-09-26 08:40:12 -070010import subprocess
11import sys
12cc,cxx = sys.argv[1:3]
13
Florin Malitafa78f3b2020-06-26 13:57:23 -040014if (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 Vejdarskibeaaf472020-03-03 13:53:20 +070016 print('true')
mtkleinf347c512016-09-26 08:40:12 -070017else:
Martin Vejdarskibeaaf472020-03-03 13:53:20 +070018 print('false')