aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-01-10 11:38:37 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-01-10 11:42:24 +0100
commit0b62b2f6ed7c068d205f82a31adf3e29dbf02c2d (patch)
tree29894cbc2a5bf92eeec0f42c80a1fc28d580eb1f /tools
parent0ea629c61ec70a35075e800bc3f85651f00e746f (diff)
reintroduce check_sources_and_headers optimization
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/sanity/check_sources_and_headers.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/run_tests/sanity/check_sources_and_headers.py b/tools/run_tests/sanity/check_sources_and_headers.py
index 6a704eb2e0..57ae5c5acc 100755
--- a/tools/run_tests/sanity/check_sources_and_headers.py
+++ b/tools/run_tests/sanity/check_sources_and_headers.py
@@ -69,13 +69,10 @@ target_headers_transitive = get_headers_transitive()
def target_has_header(target, name):
- if name.startswith('absl/'): return True
- # print target['name'], name
- if name in target['headers']:
+ if name in target_headers_transitive[target['name']]:
+ return True
+ if name.startswith('absl/'):
return True
- for dep in target['deps']:
- if target_has_header(get_target(dep), name):
- return True
if name in [
'src/core/lib/profiling/stap_probes.h',
'src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h'