diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-04-10 19:33:36 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-04-16 17:54:27 +0000 |
commit | d4449ed61310009c53259d7c19b85db093104787 (patch) | |
tree | 66a867999d40f730281d4b3ebfca3bec1b4e4c84 /mesonbuild/backend/backends.py | |
parent | 1d7d9c88e8bc3c17ea7f18e02ca30635212b9384 (diff) | |
download | meson-d4449ed61310009c53259d7c19b85db093104787.zip meson-d4449ed61310009c53259d7c19b85db093104787.tar.gz meson-d4449ed61310009c53259d7c19b85db093104787.tar.bz2 |
backend: Fix file name confilcts by using the complete path
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index afd8487..138708d 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -468,8 +468,8 @@ class Backend: source = 'meson-generated_' + os.path.relpath(rel_src, targetdir) else: if os.path.isabs(rel_src): - # Not from the source directory; hopefully this doesn't conflict with user's source files. - source = os.path.basename(rel_src) + # Use the absolute path directly to avoid file name conflicts + source = rel_src else: source = os.path.relpath(os.path.join(build_dir, rel_src), os.path.join(self.environment.get_source_dir(), target.get_subdir())) |