Disable presubmit for invalid "defined" check to sqlite code.
sqlite third_party code check that TARGET_OS_EMBEDDED is defined and
fails the presubmit check. Disable the corresponding presubmit check
for third_party code as it is unlikely a fix would be accepted by the
upstream projects.
BUG=579752
Review-Url: https://codereview.chromium.org/2832013004
Cr-Commit-Position: refs/heads/master@{#474216}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 4ba36c1..de0e49d65 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -2324,6 +2324,8 @@
"""Check all affected files for invalid "if defined" macros."""
bad_macros = []
for f in input_api.AffectedFiles():
+ if f.LocalPath().startswith('third_party/sqlite/'):
+ continue
if f.LocalPath().endswith(('.h', '.c', '.cc', '.m', '.mm')):
bad_macros.extend(_CheckForInvalidIfDefinedMacrosInFile(input_api, f))