Commit 367fa68
authored
TSCBasic: rework relative path construction on Windows (#298)
When constructing a path relative to a root, compose the final path
before canonicalization as the canonicalization may require lookups
in the base location.
We additionally pay a small penalty to convert the slashes to native
separators. This is purely for aesthetic purposes, it ensures that the
path is computed initially rather than delayed until use.
This in conjunction with swiftlang/swift-package-manager#4237 enables the
use of header search paths in SPM which are based in other targets.1 parent 363e3c5 commit 367fa68
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
78 | 99 | | |
| 100 | + | |
79 | 101 | | |
80 | 102 | | |
81 | 103 | | |
| |||
0 commit comments