Skip to content

Commit

Permalink
fix regression of relpath on external_project prefix in #13886
Browse files Browse the repository at this point in the history
  • Loading branch information
na-trium-144 committed Nov 20, 2024
1 parent 400fc7e commit d413795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/modules/external_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self,
# will install files into "c:/bar/c:/foo" which is an invalid path.
# Work around that issue by removing the drive from prefix.
if self.prefix.drive:
self.prefix = Path(relpath(self.prefix, self.prefix.drive))
self.prefix = Path('/' + relpath(self.prefix, self.prefix.drive))

# self.prefix is an absolute path, so we cannot append it to another path.
self.rel_prefix = Path(relpath(self.prefix, self.prefix.root))
Expand Down

0 comments on commit d413795

Please sign in to comment.