aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/sanity/check_sources_and_headers.py
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-08-22 13:56:36 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-08-22 13:56:36 -0700
commit102fa966b67c2aca6dbfb9ff4833505615adab0a (patch)
tree56aa02f113b737f571d5d5c47a037e671fc9662d /tools/run_tests/sanity/check_sources_and_headers.py
parent701951f635b2fa83f114c4e02bee287a56416db5 (diff)
Rename some files to avoid conflicting .obj files on Windows
Diffstat (limited to 'tools/run_tests/sanity/check_sources_and_headers.py')
-rwxr-xr-xtools/run_tests/sanity/check_sources_and_headers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/run_tests/sanity/check_sources_and_headers.py b/tools/run_tests/sanity/check_sources_and_headers.py
index c028499ca6..524640942e 100755
--- a/tools/run_tests/sanity/check_sources_and_headers.py
+++ b/tools/run_tests/sanity/check_sources_and_headers.py
@@ -62,7 +62,8 @@ def target_has_header(target, name):
def produces_object(name):
return os.path.splitext(name)[1] in ['.c', '.cc']
-obj_producer_to_source = {'c': {}, 'c++': {}, 'csharp': {}}
+c_ish = {}
+obj_producer_to_source = {'c': c_ish, 'c++': c_ish, 'csharp': {}}
errors = 0
for target in js:
@@ -85,7 +86,7 @@ for target in js:
'target %s (%s) does not name header %s as a dependency' % (
target['name'], fn, m.group(1)))
errors += 1
- if target['type'] == 'lib':
+ if target['type'] in ['lib', 'filegroup']:
for fn in target['src']:
language = target['language']
if produces_object(fn):