Skip to content

Commit 08ee135

Browse files
committed
Remove relative path
1 parent 517b6a2 commit 08ee135

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/semiwrap/makeplan.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,10 @@ def _locate_header(self, hdr: str, search_path: T.List[pathlib.Path]):
609609
for p in search_path:
610610
h_path = p / phdr
611611
if h_path.exists():
612-
return InputFile(relpath_walk_up(h_path, self.project_root)), p
612+
# We should return this as an InputFile, but inputs must be relative to the
613+
# project root, which may not be the case on windows. Incremental build should
614+
# still work, because the header is included in a depfile
615+
return h_path, p
613616
raise FileNotFoundError(
614617
f"cannot locate {phdr} in {', '.join(map(str, search_path))}"
615618
)

0 commit comments

Comments
 (0)