Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index 3fb3ed170e5248323ad1fde58db1fb0cc3aba4ec..ce175a4d4295a1f3e99237a4135ee96e2f53b053 100755 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -235,6 +235,10 @@ def _CheckNoSourcesAboveGyp(input_api, gyp_files, output_api): |
violating_gyp_files = set() |
violating_source_entries = [] |
for gyp_file in gyp_files: |
+ if 'supplement.gypi' in gyp_file.LocalPath(): |
+ # Exclude supplement.gypi from this check, as the LSan and TSan |
+ # suppression files are located in a different location. |
+ continue |
contents = input_api.ReadFile(gyp_file) |
for source_block_match in source_pattern.finditer(contents): |
# Find all source list entries starting with ../ in the source block |