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 0119ae8Copy full SHA for 0119ae8
cc/common/cc_helper_internal.bzl
@@ -354,7 +354,7 @@ def root_relative_path(file):
354
(str) The root-relative path of the file.
355
"""
356
if not file.is_source:
357
- return paths.relativize(file.path, file.root.path)
+ return file.path[len(file.root.path) + 1:]
358
short_path = file.short_path
359
if not short_path.startswith("../"):
360
return short_path
0 commit comments