From 787339e94278296639b36b980e1e6d5726ca9130 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 26 Sep 2016 09:14:59 -0400 Subject: GN: detect is_clang, use it to switch Clang to warning blacklist. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2599 Change-Id: I09c3487adfeb26a6fb07e1939cb927c5d7de3107 Reviewed-on: https://skia-review.googlesource.com/2599 Reviewed-by: Ben Wagner Commit-Queue: Mike Klein --- gn/is_clang.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 gn/is_clang.py (limited to 'gn/is_clang.py') diff --git a/gn/is_clang.py b/gn/is_clang.py new file mode 100755 index 0000000000..99173a004c --- /dev/null +++ b/gn/is_clang.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# +# Copyright 2016 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import subprocess +import sys +cc,cxx = sys.argv[1:3] + +if ('clang' in subprocess.check_output([cc, '--version']) and + 'clang' in subprocess.check_output([cxx, '--version'])): + print 'true' +else: + print 'false' + -- cgit v1.2.3