diff options
author | mtklein <mtklein@chromium.org> | 2016-09-26 08:40:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-26 08:40:12 -0700 |
commit | f347c51226cbad94b48bd6befdcddda04b6c8c62 (patch) | |
tree | 99868c372b4d6281f90208f6d186280214dd01fa /gn/is_clang.py | |
parent | 85552e4f9d65c8e751d106fae173374346863cdf (diff) |
GN: detect is_clang, use it to switch Clang to warning blacklist.
Same as the last CL, now with -Wno-over-aligned.
CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Ubuntu-Clang-x86-Debug-GN_Android-Trybot
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2369033002
TBR=bungeman@google.com
NOTREECHECKS=true
Review-Url: https://codereview.chromium.org/2369033002
Diffstat (limited to 'gn/is_clang.py')
-rwxr-xr-x | gn/is_clang.py | 17 |
1 files changed, 17 insertions, 0 deletions
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' + |