gn2bp: add back a comment

Comment was deleted during a previous refactoring step.

Test: none
Change-Id: I1f4d3d1915122bdaed65bfdc0c58e63a1f41d5d3
This commit is contained in:
Patrick Rohr
2022-11-30 19:48:56 -08:00
parent 357b25cd23
commit 8bcd783eae

View File

@@ -691,6 +691,7 @@ class BaseActionSanitizer():
# TODO: verify if it actually *is* universally applicable.
def _sanitize_filepath(self, filepath):
# Careful, order matters!
# delete all leading ../
filepath = re.sub('^(\.\./)+', '', filepath)
filepath = re.sub('^gen/jni_headers', '$(genDir)', filepath)
filepath = re.sub('^gen', '$(genDir)', filepath)