We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c27aa commit 210737eCopy full SHA for 210737e
cc/common/cc_helper_internal.bzl
@@ -354,6 +354,9 @@ def root_relative_path(file):
354
(str) The root-relative path of the file.
355
"""
356
if not file.is_source:
357
+ if file.path.startswith(file.root.path + "/"):
358
+ # TODO(zbarsky): is this always the case?
359
+ return file.path[len(file.root.path) + 1:]
360
return paths.relativize(file.path, file.root.path)
361
short_path = file.short_path
362
if not short_path.startswith("../"):
0 commit comments