Description[GN] Add support to rebase_path to resolve paths above the source root.
Currently, rebase_path clips any path which references the filesystem
above or outside of the source root. Extend this functionality to allow
rebase_path to properly resolve paths outside the source root when the
absolute path to the source root is known. When the source root is
unknown, the behavior will continue to clip.
BUG=554241
TEST=gn_unittests
Committed: https://crrev.com/910ac443ab1827eae049ae052af867d432ad7aac
Cr-Commit-Position: refs/heads/master@{#363080}
Patch Set 1 #Patch Set 2 : Correct comments. #Patch Set 3 : Use empty() to evaluate emptiness #Patch Set 4 : Only make path absolute when necessary #Patch Set 5 : . #
Total comments: 4
Patch Set 6 : Add tests, handle Windows sources. #
Messages
Total messages: 19 (5 generated)
|