aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-08-27 22:30:23 +0300
committerGitHub <noreply@github.com>2018-08-27 22:30:23 +0300
commit1ffc8de5e8cc79dbaa54fd1ac02b6b4c5edac7a1 (patch)
tree916eb6a1c988386d9848115709dd9c6b199a5a5a /mesonbuild/interpreter.py
parent731906504efb57aa9ae86685501f1d3a0aa22121 (diff)
parentfd2c3b4c77ac1977d254301876525f8e631a940a (diff)
downloadmeson-1ffc8de5e8cc79dbaa54fd1ac02b6b4c5edac7a1.zip
meson-1ffc8de5e8cc79dbaa54fd1ac02b6b4c5edac7a1.tar.gz
meson-1ffc8de5e8cc79dbaa54fd1ac02b6b4c5edac7a1.tar.bz2
Merge pull request #3981 from GoaLitiuM/d-win-fixes
Fix D support on Windows
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 358dd8f..e001232 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -3998,7 +3998,7 @@ Try setting b_lundef to false instead.''')
# BW compatibility. This was permitted so we must support it
# for a few releases so people can transition to "correct"
# path declarations.
- if i.startswith(self.environment.get_source_dir()):
+ if os.path.normpath(i).startswith(self.environment.get_source_dir()):
mlog.warning('''Building a path to the source dir is not supported. Use a relative path instead.
This will become a hard error in the future.''')
i = os.path.relpath(i, os.path.join(self.environment.get_source_dir(), self.subdir))