blob: 99173a004c521f8073f4c6faf2cb52e89120967f [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
8import subprocess
9import sys
10cc,cxx = sys.argv[1:3]
11
12if ('clang' in subprocess.check_output([cc, '--version']) and
13 'clang' in subprocess.check_output([cxx, '--version'])):
14 print 'true'
15else:
16 print 'false'
17