From d413795c4743b30be62f2f158af4c1352b7837b6 Mon Sep 17 00:00:00 2001 From: na-trium-144 <100704180+na-trium-144@users.noreply.github.com> Date: Wed, 20 Nov 2024 23:27:04 +0900 Subject: [PATCH] fix regression of relpath on external_project prefix in #13886 --- mesonbuild/modules/external_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/external_project.py b/mesonbuild/modules/external_project.py index 64f7d57d2f30..0b6227435aea 100644 --- a/mesonbuild/modules/external_project.py +++ b/mesonbuild/modules/external_project.py @@ -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))