reintroduce check_sources_and_headers optimization

pull/13964/head
Jan Tattermusch 7 years ago
parent 0ea629c61e
commit 0b62b2f6ed
  1. 9
      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): def target_has_header(target, name):
if name.startswith('absl/'): return True if name in target_headers_transitive[target['name']]:
# print target['name'], name return True
if name in target['headers']: if name.startswith('absl/'):
return True return True
for dep in target['deps']:
if target_has_header(get_target(dep), name):
return True
if name in [ if name in [
'src/core/lib/profiling/stap_probes.h', 'src/core/lib/profiling/stap_probes.h',
'src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h' 'src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h'

Loading…
Cancel
Save